Package net.flexmojos.oss.test

Examples of net.flexmojos.oss.test.FMVerifier.executeGoal()


    protected FMVerifier test( File projectDirectory, String goal, String... args )
        throws VerificationException
    {
        FMVerifier verifier = getVerifier( projectDirectory, args );
        verifier.getCliOptions().addAll( Arrays.asList( args ) );
        verifier.executeGoal( goal );
        // TODO there are some errors logged, but they are not my concern
        // verifier.verifyErrorFreeLog();
        return verifier;
    }
View Full Code Here


                verifier.getCliOptions().add( "-npu" );
                verifier.getCliOptions().add( "-B" );
                verifier.getCliOptions().addAll( Arrays.asList( args ) );
                // verifier.getCliOptions().add( "-X" );
                verifier.setLogFileName( getTestName() + ".resolve.log" );
                verifier.executeGoal( "dependency:go-offline" );
            }
            catch ( Throwable t )
            {
                t.printStackTrace();
                // this is not a real issue
View Full Code Here

    {
        File testDir = getProject( "/issues/" + "flexmojos-141" );
        FMVerifier verifier = getVerifier( testDir );
        try
        {
            verifier.executeGoal( "install" );
            Assert.fail();
        }
        catch ( VerificationException e )
        {
            // expected
View Full Code Here

    {
        File testDir = getProject( "/issues/issue-0098" );

        FMVerifier verifier = getVerifier( testDir );
        verifier.getCliOptions().add( "-DinjectedNumber=3" );
        verifier.executeGoal( "install" );
        verifier.verifyErrorFreeLog();
    }

}
View Full Code Here

        throws Exception
    {
        File testDir = getProject( "/issues/issue-0017" );
        FMVerifier verifier = getVerifier( testDir );
        verifier.getCliOptions().remove( "-Dflex.coverage=true" );
        verifier.executeGoal( siteGoal() );

        File asdoc = new File( testDir, "target/site/asdoc" );
        assertThat( asdoc, FileMatchers.exists() );
        assertThat( new File( asdoc, "index.html" ), FileMatchers.exists() );
        assertThat( new File( asdoc, "main.html" ), FileMatchers.exists() );
View Full Code Here

        assertThat( or, FileMatchers.exists() );
        fk.getParentFile().mkdirs();

        FileUtils.copyFile( or, fk );

        verifier.executeGoal( "install" );

        assertThat( new File( basedir, "target/test-classes/TestRunner.swf" ), FileMatchers.exists() );
        assertThat( new File( basedir, "target/surefire-reports/TEST-AnnotatedTest.dummyTest.AnnotatedTest.xml" ),
                    FileMatchers.exists() );
    }
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.