Package org.trello4j.model

Examples of org.trello4j.model.Checklist


    public void shouldCreateChecklist() throws Exception {
        // GIVEN
        InputStream json = getTestDataFromFile("checklist.json");

        // WHEN
        Checklist checklist = trelloObjFactory.createObject(new TypeToken<Checklist>(){}, json);

        // THEN
        assertEquals("4f92b89ea73738db6cdd4ed7", checklist.getId());
        assertEquals("Checklist", checklist.getName());
        assertEquals("4f92b80ba73738db6cdd4309", checklist.getIdBoard());
        assertEquals(3, checklist.getCheckItems().size());

        Checklist.CheckItem firstCheckItem = checklist.getCheckItems().get(0);
        assertEquals("First checkitem", firstCheckItem.getName());
        assertEquals("check", firstCheckItem.getType());
        assertEquals(8588, firstCheckItem.getPos(), 0);

        json.close();
View Full Code Here

TOP

Related Classes of org.trello4j.model.Checklist

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.