Package com.stoyanr.todo.model.Item

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


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


    public Item getItem(JSONObject value) {
        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());
View Full Code Here

TOP

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

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.