Package org.nm.ntutimetabletoics

Examples of org.nm.ntutimetabletoics.SemesterTimetable


        Node nd;
        String propName, value;
        for (int i = 0; i < n; ++i) {
            nd = nodes.item(i);
            NamedNodeMap map = nd.getAttributes();
            SemesterTimetable sT = new SemesterTimetable(ntuTimetable);
            if (logger.isDebugEnabled()) {
                logger.debug("Initializing SemesterTimetable " + i);
            }
            Node child;
            int m = map.getLength();
View Full Code Here


        NTUTimetable result = Configurator.configure(confPath);
        int expectedSize = 7;
        assertNotNull(result);
        ArrayList<SemesterTimetable> resultSTs = result.getSemesterTimetables();
        assertEquals(expectedSize, resultSTs.size());
        SemesterTimetable resultST = null;
        for (int i = 0; i < expectedSize; ++i) {
            resultST = resultSTs.get(i);
            //ObjectPrinter.print(resultST);
            assertNotNull(resultST);
            assertSame(result, resultST.getNtuTimetable());
            ArrayList<Course> cList = resultST.getCourses();
            assertNotNull(cList);
            int m = cList.size();
            for (int j = 0; j < m; ++j) {
                Course c = cList.get(j);
                System.out.println(c.getCourseName());
                ArrayList<ClassTimetable> clList = c.getClassTimetables();
                for (int k = 0; k < clList.size(); ++k) {
                    ClassTimetable cp = clList.get(k);
                    System.out.println(cp.getClassType());
                }
            }
            System.out.println("\n------------\n");
            ArrayList<ClassTimetable> clList = resultST.getClassTimetables();
            assertSame(resultST.getClassTimetables(), clList);
            for (int j = 0; j < clList.size(); ++j) {
                ClassTimetable c = clList.get(j);
                //System.out.println(c.getClassType());
            }
            assertNotNull(resultST.getClassTimetables());
        }
    }
View Full Code Here

TOP

Related Classes of org.nm.ntutimetabletoics.SemesterTimetable

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.