Package org.nm.ntutimetabletoics

Examples of org.nm.ntutimetabletoics.NTUTimetable


    public NTUTimetable doConfigure(String confPath) {
        BasicConfigurator.configure();
        Logger.getRootLogger().setLevel(Level.FATAL);
        logger = Logger.getLogger(Configurator.class);
        xmlConfDoc = new DOMInitializer().getXMLConfiguration(confPath);
        ntuTimetable = new NTUTimetable();
        initSemesterTimetables(ntuTimetable.getSemesterTimetables());
        return ntuTimetable;
    }
View Full Code Here


     * Test of configure method, of class Configurator.
     */
    public void testConfigure() {
        System.out.println("[TEST] configure");
        String confPath = "/home/nmutiara/NetBeansProjects/ntutimetabletoics/examples/conf.xml";
        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);
View Full Code Here

TOP

Related Classes of org.nm.ntutimetabletoics.NTUTimetable

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.