Package com.stoyanr.todo.model.Item

Examples of com.stoyanr.todo.model.Item.Status


    @Test
    public void testUpdateItemStatus() {
        data.addItem(getItemText());
        data.setDirty(false);
        Status status = Status.IN_PROGRESS;
        data.updateItem(data.getDocument().getItems().get(0), status);
        Item itemx = new Item(null, 0, getItemText(), Priority.MEDIUM, status,
            NOW, NOW);
        verifyUpdateItemInvocations(itemx);
        assertUpdateItemResults(itemx);
View Full Code Here


        String key = fromNullableValue(value.get(KEY).isString().stringValue());
        long id = (long) value.get(ID).isNumber().doubleValue();
        String text = value.get(TEXT).isString().stringValue();
        Priority priority = Priority.valueOf(value.get(PRIORITY).isString()
            .stringValue());
        Status status = Status.valueOf(value.get(STATUS).isString()
            .stringValue());
        Date created = new Date((long) value.get(CREATED).isNumber()
            .doubleValue());
        Date updated = new Date((long) value.get(UPDATED).isNumber()
            .doubleValue());
View Full Code Here

TOP

Related Classes of com.stoyanr.todo.model.Item.Status

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.