assertEquals("Order Unexpected", 0, section.getAssociatedSections(1).getSectionOrder().intValue()); assertEquals("Order Unexpected", 1, section.getAssociatedSections(0).getSectionOrder().intValue()); assertEquals("Order Unexpected", 2, section.getAssociatedSections(2).getSectionOrder().intValue());
assertEquals("Order Unexpected", 0, section.getAssociatedSections().get(1).getSectionOrder().intValue()); assertEquals("Order Unexpected", 1, section.getAssociatedSections().get(0).getSectionOrder().intValue()); assertEquals("Order Unexpected", 2, section.getAssociatedSections().get(2).getSectionOrder().intValue());
    public void testEdit(){        try{            section.edit(null, null);            fail("Expected NullPointerException");        }        catch(NullPointerException e){            assertEquals("Name Unexpected", "SectionName", section.getName());            assertEquals("Order Unexpected", 0, section.getSectionOrder().intValue());        }                      section.edit("NewSectionName", 1);                assertEquals("Name Unexpected", "NewSectionName", section.getName());        assertEquals("Order Unexpected", 1, section.getSectionOrder().intValue());                        // Test: Organize Superior Sections         assertEquals("Order Unexpected", 0, site.getAssociatedSections(4).getSectionOrder().intValue());        assertEquals("Order Unexpected", 1, site.getAssociatedSections(0).getSectionOrder().intValue());        assertEquals("Order Unexpected", 2, site.getAssociatedSections(5).getSectionOrder().intValue());                        // Test: Organize SubSections Order        section2.edit("NewSectionName2", 1);                                             assertEquals("Name Unexpected", "NewSectionName2", section2.getName());        assertEquals("Order Unexpected", 1, section2.getSectionOrder().intValue());                assertEquals("Order Unexpected", 0, section.getAssociatedSections(1).getSectionOrder().intValue());        assertEquals("Order Unexpected", 1, section.getAssociatedSections(0).getSectionOrder().intValue());        assertEquals("Order Unexpected", 2, section.getAssociatedSections(2).getSectionOrder().intValue());    }