Examples of FMVerifier


Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void orgFlexunit()
        throws Exception
    {
        File basedir = getProject( "issues/flexmojos-350" );
        FMVerifier verifier = getVerifier( basedir );

        // TODO remove this once flexunit is released!
        File or = file( FMVerifier.getArtifactPath( "com.adobe.flexunit", "flexunit", "4.0-beta-2", "swc" ) );
        File fk = file( FMVerifier.getArtifactPath( "org.flexunit", "flexunit", "4.1", "swc" ) );

        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

Examples of net.flexmojos.oss.test.FMVerifier

    @Test( groups = { "optimizer" } )
    public void testOptimizedFlexLibrary()
        throws Exception
    {
        FMVerifier v = standardConceptTester( "optimized-flex-library" );
        v.assertArtifactPresent( "info.rvin.itest", "optimized-flex-library", "1.0-SNAPSHOT", "swc" );
        v.assertArtifactPresent( "info.rvin.itest", "optimized-flex-library", "1.0-SNAPSHOT", "swf" );
    }
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test( groups = { "optimizer" } )
    public void testOptimizedApplication()
        throws Exception
    {
        FMVerifier v = standardConceptTester( "optimized-application" );
        v.assertArtifactPresent( "info.rvin.itest", "optimized-application", "1.0-SNAPSHOT", "swf" );
        File path = new File( FMVerifier.getArtifactPath( "info.rvin.itest", "optimized-application", "1.0-SNAPSHOT", "swf" ) );
        FileAssert.assertFile( new File( path.getParentFile(), "optimized-application-1.0-SNAPSHOT-original.swf" ) );
    }
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void testFlexUnit4Example()
        throws Exception
    {
        FMVerifier v = testIssue( "flexmojos-395" );
        File testDir = new File(v.getBasedir());

        File target = new File( testDir, "target" );
        File sureFireReports = new File( target, "surefire-reports" );
        AssertJUnit.assertTrue( "Report folder not created!", sureFireReports.isDirectory() );
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void multiplePoms()
        throws Exception
    {
        File testDir = getProject( "/issues/flexmojos-248", "pom.xml", "m.xml", "p1.xml", "p2.xml" );
        FMVerifier v = test( testDir, "install", "-f", "m.xml" );
        String dir = v.getBasedir();
        test( testDir, "install", "-f", "p1.xml" );
        test( testDir, "install", "-f", "p2.xml" );
        validateCompilation( dir, v );
    }
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void resourcesEmbedding()
        throws Exception
    {
        FMVerifier v = test( getProject( "issues/flexmojos-315" ), "install" );
        String dir = v.getBasedir();

        File target = new File( dir, "target" );
        File main = new File( target, "flexmojos-315-1.0-SNAPSHOT.swf" );

        assertSeftExit( main, 3539, v );
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    }

    private File compile( String goal, String file )
        throws VerificationException, IOException, Exception
    {
        FMVerifier v = test( getProject( "intro/hello-world" ), goal, "-DisIt=true" );
        String dir = v.getBasedir();

        File target = new File( dir, "target" );
        File main = new File( target, file );

        assertSeftExit( main, 3539, v );
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void simplify()
        throws Exception
    {
        FMVerifier v = standardConceptTester( "simplify-air" );

        v.assertArtifactPresent( "info.rvin.itest", "simplify-air", "1.0-SNAPSHOT", "pom" );
        v.assertArtifactPresent( "info.rvin.itest", "simplify-air", "1.0-SNAPSHOT", "swf" );
        v.assertArtifactPresent( "info.rvin.itest", "simplify-air", "1.0-SNAPSHOT", "air" );

        ZipFile zf =
            new ZipFile( FMVerifier.getArtifactPath( "info.rvin.itest", "simplify-air", "1.0-SNAPSHOT", "air" ) );
        try
        {
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

        // else
        // {
        // osPackages = "exe";
        // }

        FMVerifier v = standardConceptTester( "native-air"/* , "-Dos.packages=" + osPackages */);
        v.assertArtifactPresent( "info.rvin.itest", "native-air", "1.0-SNAPSHOT", "pom" );
        v.assertArtifactPresent( "info.rvin.itest", "native-air", "1.0-SNAPSHOT", "swf" );
        v.assertArtifactPresent( "info.rvin.itest", "native-air", "1.0-SNAPSHOT", "air" );
        // v.assertArtifactPresent( "info.rvin.itest", "native-air", "1.0-SNAPSHOT", "apk" );
        // v.assertArtifactPresent( "info.rvin.itest", "native-air", "1.0-SNAPSHOT", osPackages );
    }
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void flexmojos355()
        throws Exception
    {
        FMVerifier v = test( getProject( "intro/hello-world" ), "install", "-Dflex.defaultBackgroundColor=#FFFFFF" );
        v.verifyTextInLog( "defaultBackgroundColor = 16777215" );
        v.verifyTextInLog( "-default-background-color=16777215" );
    }
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.