Examples of FMVerifier


Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void linkReportScanner()
        throws Exception
    {
        FMVerifier v =
            testIssue( "flexmojos-334", "-Dflex.coverageStrategy=link-report", "-Dflex.coverageOverwriteSourceRoots=src/main/flex" );
        List<String> classes = getCoveredClasses( v );
        Assert.assertEquals( classes.size(), 3, classes.toString() );
        // bug on flexmojos/cobertura support, it does think the files are .java
        MatcherAssert.assertThat( classes, IsCollectionContaining.hasItems( "FlexMaven/UntestedClass.as",
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void disabledScanner()
        throws Exception
    {
        FMVerifier v =
            testIssue( "flexmojos-334", "-Dflex.coverageStrategy=disabled", "-Dflex.coverageOverwriteSourceRoots=src/main/flex" );
        List<String> classes = getCoveredClasses( v );
        Assert.assertEquals( classes.size(), 2, classes.toString() );
        // bug on flexmojos/cobertura support, it does think the files are .java
        MatcherAssert.assertThat( classes,
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    // Disabled for now, because the Issue https://flexmojos.atlassian.net/browse/FLEXMOJOS-525 is still open.
    //@Test
    public void as3contentScanner()
        throws Exception
    {
        FMVerifier v =
            testIssue( "flexmojos-334", "-Dflex.coverageStrategy=as3Content", "-Dflex.coverageOverwriteSourceRoots=src/main/flex" );
        List<String> classes = getCoveredClasses( v );
        Assert.assertEquals( classes.size(), 4, classes.toString() );
        // bug on flexmojos/cobertura support, it does think the files are .java
        MatcherAssert.assertThat( classes, IsCollectionContaining.hasItems( "FlexMaven/UntestedClass.as",
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void skip()
        throws Exception
    {
        File testDir = getProject( "/issues/flexmojos-168/skip" );
        FMVerifier v = test( testDir, "compile", "-Dflexmojos.skip=true" );

        String log = FileUtils.fileRead( new File( v.getBasedir(), v.getLogFileName() ) );
        Assert.assertTrue( log.contains( "Skipping flexmojos goal execution" ) );
        Assert.assertFalse( log.contains( "Flexmojos " + MavenUtils.getFlexMojosVersion()
            + " - GPL License (NO WARRANTY) - See COPYRIGHT file" ) );

        File target = new File( v.getBasedir(), "target" );
        File swf = new File( target, "flexmojos-168-skip-1.0-SNAPSHOT.swf" );
        Assert.assertFalse( swf.exists() );

        v.assertArtifactNotPresent( "info.rvin.itest.issues", "flexmojos-168-skip", "1.0-SNAPSHOT", "swf" );
    }
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void classifier()
        throws Exception
    {
        FMVerifier v = testIssue( "flexmojos-168/classifier" );

        File target = new File( v.getBasedir(), "target" );
        String filename = "flexmojos-168-1.0-SNAPSHOT-validation.swf";
        File swf = new File( target, filename );
        Assert.assertTrue( swf.exists() );

        File fakeRepo = new File( getProperty( "fake-repo" ) );
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    public void issue98()
        throws Exception
    {
        File testDir = getProject( "/issues/issue-0098" );

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

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void passFluint()
        throws Exception
    {
        FMVerifier v = standardConceptTester( "/fluint-example/pass" );
        File testDir = new File( v.getBasedir() );

        TestCaseReport report = getTestReport( testDir, "fluint.ExampleTest" );

        AssertJUnit.assertEquals( 0, report.getErrors() );
        AssertJUnit.assertEquals( 0, report.getFailures() );
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void testLocalizationChain()
        throws Exception
    {
        FMVerifier v = standardConceptTester( "l10n-locale-chain" );
        v.assertArtifactPresent( "com.adobe.flex.framework", "charts", getFlexSDKVersion(), "rb.swc",
                                 "pt_BR2pt_PT" );
        v.assertArtifactNotPresent( "com.adobe.flex.framework", "charts", getFlexSDKVersion(), "rb.swc",
                                    "pt_PT" );
    }
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void testMetadataTest()
        throws Exception
    {
        FMVerifier v = standardConceptTester( "metadata-test" );
        File testDir = new File( v.getBasedir() );
        final String swfPath = new File( testDir, "target/metadata-test-1.0-SNAPSHOT.swf" ).getAbsolutePath();
        final String swfDumpPath = swfPath + "x";
        SwfxPrinter.main( new String[] { "-out", swfDumpPath, swfPath } );

        String dump = FileUtils.fileRead( swfDumpPath );
View Full Code Here

Examples of net.flexmojos.oss.test.FMVerifier

    @Test
    public void issue17()
        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
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.