Package net.sourceforge.purrpackage.reporting

Examples of net.sourceforge.purrpackage.reporting.Main


                srcDir } );
    }

    @Test
    public void testParseArgs() throws Exception {
        Main m = new Main();
        m.parseArguments(new String[] { "--datafile", "a", "--destination",
                "b", "--encoding", "c", "f", "g" });
        assertEquals(m.support.getCoverageDataFile().getName(), "a");
        assertEquals(m.support.getDestinationDir().getName(), "b");
        assertEquals(m.support.getEncoding(), "c");
        assertEquals(m.support.getFinder().getSourceDirectoryList().size(), 2);
        m = new Main();
        try {
            m.parseArguments(new String[] {});
            fail();
        } catch (Exception e) {
            assertTrue(e.getMessage().indexOf("destination") > -1);
        }
        assertNotNull(m.support.getCoverageDataFile());
View Full Code Here

TOP

Related Classes of net.sourceforge.purrpackage.reporting.Main

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.