Package com.darkhonor.rage.model

Examples of com.darkhonor.rage.model.Course.clearSections()


    public void testUpdateClearSections()
    {
        System.out.println("update - Clear Sections");
        Course course = createExistingCourse();

        course.clearSections();
       
        assertTrue(instance.isOpen());
        Course result = instance.update(course);
        assertEquals(new Long(1L), result.getId());
        assertEquals("CS110", result.getName());
View Full Code Here


            }
            // Update the list of Sections
            if (course.getSections().isEmpty())
            {
                LOGGER.debug("- There are no Sections associated with the course");
                dbCourse.clearSections();
            } else
            {
                LOGGER.debug("- Need to update sections to match.  Clearing old");
                dbCourse.clearSections();
                LOGGER.debug("- Database sections cleared");
View Full Code Here

                LOGGER.debug("- There are no Sections associated with the course");
                dbCourse.clearSections();
            } else
            {
                LOGGER.debug("- Need to update sections to match.  Clearing old");
                dbCourse.clearSections();
                LOGGER.debug("- Database sections cleared");
                LOGGER.debug("- # of Sections in new Course: "
                        + course.getSections().size());
                for (int i = 0; i < course.getSections().size(); i++)
                {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.