Package net.mindengine.galen

Examples of net.mindengine.galen.GalenMain


    @Test public void shouldNot_overrideExistingConfigFile() throws IOException {
        File file = new File("config");
        file.createNewFile();
        FileUtils.writeStringToFile(file, "someTestDate = qwertyuiop");
       
        new GalenMain().performConfig();
       
        String data = FileUtils.readFileToString(file);
        assertThat(data, is("someTestDate = qwertyuiop"));
       
        file.delete();
View Full Code Here


        file.delete();
    }
   
    @Test public void shouldRun_filteredTestInSuite() throws Exception {
        String testUrl = getClass().getResource("/suites/suite-for-filtering.test").getFile();
        GalenMain galen = new GalenMain();
       
        final List<String> executedSuites = new LinkedList<String>();
       
        CompleteListener listener = new DummyCompleteListener() {
            @Override
            public void onTestStarted(GalenTest test) {
                executedSuites.add(test.getName());
            }
        };
        galen.setListener(listener);
       
        galen.execute(new GalenArguments()
            .withAction("test")
            .withPaths(asList(testUrl))
            .withFilter("*with filter*")
        );
       
View Full Code Here

TOP

Related Classes of net.mindengine.galen.GalenMain

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.