Examples of AntResult


Examples of com.redhat.ceylon.itest.AntBasedTest.AntResult

        assertNotContainsMatch(result.getStdout(), "\\[exec\\] Result: [0-9]+");
    }

    @Test
    public void testVersion() throws Exception {
        AntResult result = ant("version");
        Assert.assertEquals(1, result.getStatusCode());
        assertContains(result.getStdout(), "[exec] ceylon run: ");
        assertContains(result.getStdout(), "exec returned: " + CeylonTool.SC_ARGS);
    }
View Full Code Here

Examples of com.redhat.ceylon.itest.AntBasedTest.AntResult

        assertContains(result.getStdout(), "exec returned: " + CeylonTool.SC_ARGS);
    }
   
    @Test
    public void testHelp() throws Exception {
        AntResult result = ant("help");
        Assert.assertEquals(CeylonTool.SC_OK, result.getStatusCode());
        assertContains(result.getStdout(), "[exec] DESCRIPTION");
    }
View Full Code Here

Examples of com.redhat.ceylon.itest.AntBasedTest.AntResult

        assertContains(result.getStdout(), "[exec] DESCRIPTION");
    }
   
    @Test
    public void testH() throws Exception {
        AntResult result = ant("h");
        Assert.assertEquals(CeylonTool.SC_OK, result.getStatusCode());
        assertContains(result.getStdout(), "[exec] DESCRIPTION");
    }
View Full Code Here

Examples of com.redhat.ceylon.itest.AntBasedTest.AntResult

        assertContains(result.getStdout(), "[exec] DESCRIPTION");
    }
   
    @Test
    public void testExecHelloMethodCompiled() throws Exception {
        AntResult result = ant("exec-hello-compiled");
        Assert.assertEquals(0, result.getStatusCode());
        assertContains(result.getStdout(), "Hello, world");
    }
View Full Code Here

Examples of com.redhat.ceylon.itest.AntBasedTest.AntResult

        assertContains(result.getStdout(), "Hello, world");
    }
   
    @Test
    public void testExecDefaultCompiled() throws Exception {
        AntResult result = ant("exec-default-compiled");
        Assert.assertEquals(0, result.getStatusCode());
        assertContains(result.getStdout(), "Hello, world");
    }
View Full Code Here

Examples of com.redhat.ceylon.itest.AntBasedTest.AntResult

        assertContains(result.getStdout(), "Hello, world");
    }
   
    @Test
    public void testExecDefaultCompiledFunc() throws Exception {
        AntResult result = ant("exec-default-compiled-func");
        Assert.assertEquals(0, result.getStatusCode());
        assertContains(result.getStdout(), "Hello, world");
    }
View Full Code Here

Examples of com.redhat.ceylon.itest.AntBasedTest.AntResult

        assertContains(result.getStdout(), "Hello, world");
    }
   
    @Test
    public void testExecDefaultCompiledArg() throws Exception {
        AntResult result = ant("exec-default-compiled-arg");
        Assert.assertEquals(0, result.getStatusCode());
        assertContains(result.getStdout(), "Hello, Tako");
    }
View Full Code Here

Examples of com.redhat.ceylon.itest.AntBasedTest.AntResult

        assertContains(result.getStdout(), "Hello, Tako");
    }
   
    @Test
    public void testExecGoodbyeClassCompiled() throws Exception {
        AntResult result = ant("exec-goodbye-compiled");
        Assert.assertEquals(0, result.getStatusCode());
        assertContains(result.getStdout(), "Goodbye cruel world");
    }
View Full Code Here

Examples of com.redhat.ceylon.itest.AntBasedTest.AntResult

    }
   
    @Test
    @Ignore("Module descriptor doesn't support 'run' yet")
    public void testExecFooModuleCompiled() throws Exception {
        AntResult result = ant("exec-foo-compiled");
        Assert.assertEquals(0, result.getStatusCode());
        assertContains(result.getStdout(), "Hello, world");
    }
View Full Code Here

Examples of com.redhat.ceylon.itest.AntBasedTest.AntResult

    }
   
    @Test
    @Ignore("ceylon doesn't support compilation yet")
    public void testExecHelloMethodFromSource() throws Exception {
        AntResult result = ant("exec-hello-source");
        Assert.assertEquals(0, result.getStatusCode());
        assertContains(result.getStdout(), "Hello, world");
    }
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.