Examples of FMVerifier


Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void helloWordTest()
        throws Exception
    {
        FMVerifier v = test( getProject( "intro/hello-world" ), "install", "-DisIt=true" );
        String dir = v.getBasedir();

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

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

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void helloWordNoInherit()
        throws Exception
    {
        FMVerifier v = test( getProject( "intro/hello-world-no-inherit" ), "install", "-DisIt=true" );
        String dir = v.getBasedir();

        File target = new File( dir, "target" );
        File main = new File( target, "hello-world-no-inherit-1.0-SNAPSHOT.swf" );

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

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void spark()
        throws Exception
    {
        FMVerifier v = test( getProject( "intro/hello-spark" ), "install", "-DisIt=true" );
        String dir = v.getBasedir();

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

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

Examples of net.flexmojos.oss.test.FMVerifier

    }

    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

Examples of net.flexmojos.oss.test.FMVerifier

        if ( new File( projectDirectory, "pom.xml" ).exists() )
        {
            downloadArtifactsLock.writeLock().lock();
            try
            {
                FMVerifier verifier = new FMVerifier( projectDirectory.getAbsolutePath() );
                verifier.getVerifierProperties().put( "use.mavenRepoLocal", "true" );
                verifier.setAutoclean( false );
                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
            }
            finally
            {
                downloadArtifactsLock.writeLock().unlock();
            }
        }

        FMVerifier verifier = new FMVerifier( projectDirectory.getAbsolutePath() );
        // verifier.getCliOptions().add( "-s" + rootFolder.getAbsolutePath() + "/settings.xml" );
        // verifier.getCliOptions().add( "-o" );
        verifier.getCliOptions().add( "-npu" );
        verifier.getCliOptions().add( "-B" );
        verifier.getCliOptions().add( "-X" );
        verifier.getCliOptions().add( "-Dflex.coverage=true" );
        verifier.getCliOptions().add( "-Dflex.coverageOverwriteSourceRoots=" + getSourceRoots() );
        verifier.getVerifierProperties().put( "use.mavenRepoLocal", "true" );
        Properties sysProps = new Properties();
        sysProps.setProperty( "MAVEN_OPTS", "-Xmx512m" );
        sysProps.setProperty( "apparat.threads", "false" );
        sysProps.setProperty( "apparat.debug", "true" );
        verifier.setSystemProperties( sysProps );
        verifier.setLogFileName( getTestName() + ".log" );
        verifier.setAutoclean( false );

        return verifier;
    }
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void moduleFiles()
        throws Exception
    {
        FMVerifier v = testIssue( "flexmojos-248", "-DloadExternsOnModules=true" );
        String dir = v.getBasedir();
        validateCompilation( dir, v );
    }
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void manifestCreation()
        throws Exception
    {
        FMVerifier v = standardConceptTester( "manifest" );
        File dir = new File( v.getBasedir() );
        Assert.assertTrue( new File( dir, "target/manifest.xml" ).isFile() );
    }
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void moduleFilesLoadExternsOnModules()
        throws Exception
    {
        FMVerifier v = testIssue( "flexmojos-248", "-DloadExternsOnModules=false" );
        String dir = v.getBasedir();
        validateCompilation( dir, v );
    }
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void testInvalidVersion()
        throws Exception
    {
        File testDir = getProject( "/issues/" + "flexmojos-141" );
        FMVerifier verifier = getVerifier( testDir );
        try
        {
            verifier.executeGoal( "install" );
            Assert.fail();
        }
        catch ( VerificationException e )
        {
            // expected
        }

        verifier.verifyTextInLog( "Flex compiler and flex framework versions doesn't match." );
    }
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @SuppressWarnings( { "unchecked" } )
    @Test
    public void generatorClasspathAccess()
        throws Exception
    {
        FMVerifier v = testIssue( "flexmojos-126" );
        File linkReportXml =
            new File(
                      v.getBasedir(),
                      "FlexMojos-Jira-126-FlexSide/target/FlexMojos-Jira-126-FlexSide-1.0-SNAPSHOT-link-report.xml" );

        MatcherAssert.assertThat( linkReportXml, FileMatchers.exists() );

        SAXReader saxReader = new SAXReader();
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.