Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Commit

Permalink
Fxed some test that fail on linux machines.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdutz committed Apr 19, 2011
1 parent 86e9f46 commit 1d6b3ed
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Expand Up @@ -48,9 +48,9 @@ private void validateCompilation( String dir, FMVerifier v )
File main = new File( target, "test-flex-modules-0.0.1-SNAPSHOT.swf" ); File main = new File( target, "test-flex-modules-0.0.1-SNAPSHOT.swf" );
MatcherAssert.assertThat( main, FileMatcher.isFile() ); MatcherAssert.assertThat( main, FileMatcher.isFile() );


File module1 = new File( target, "test-flex-modules-0.0.1-SNAPSHOT-Module1.swf" ); File module1 = new File( target, "test-flex-modules-0.0.1-SNAPSHOT-module1.swf" );
MatcherAssert.assertThat( module1, FileMatcher.isFile() ); MatcherAssert.assertThat( module1, FileMatcher.isFile() );
File module2 = new File( target, "test-flex-modules-0.0.1-SNAPSHOT-Module2.swf" ); File module2 = new File( target, "test-flex-modules-0.0.1-SNAPSHOT-module2.swf" );
MatcherAssert.assertThat( module2, FileMatcher.isFile() ); MatcherAssert.assertThat( module2, FileMatcher.isFile() );


assertSeftExit( main, 3539, v ); assertSeftExit( main, 3539, v );
Expand Down
Expand Up @@ -49,11 +49,11 @@ public void linkReportScanner()
List<String> classes = getCoveredClasses( v ); List<String> classes = getCoveredClasses( v );
Assert.assertEquals( classes.size(), 3, classes.toString() ); Assert.assertEquals( classes.size(), 3, classes.toString() );
// bug on flexmojos/cobertura support, it does think the files are .java // bug on flexmojos/cobertura support, it does think the files are .java
MatcherAssert.assertThat( classes, IsCollectionContaining.hasItems( "FlexMaven/UntestedClass.java", MatcherAssert.assertThat( classes, IsCollectionContaining.hasItems( "FlexMaven/UntestedClass.as",
"FlexMaven/sampleInclude.java", "FlexMaven/sampleInclude.as",
"FlexMaven/App.java" ) ); "FlexMaven/App.as" ) );
MatcherAssert.assertThat( classes, MatcherAssert.assertThat( classes,
CoreMatchers.not( IsCollectionContaining.hasItems( "FlexMaven/unusedInclude.java" ) ) ); CoreMatchers.not( IsCollectionContaining.hasItems( "FlexMaven/unusedInclude.as" ) ) );
} }


@Test @Test
Expand All @@ -66,10 +66,10 @@ public void disabledScanner()
Assert.assertEquals( classes.size(), 2, classes.toString() ); Assert.assertEquals( classes.size(), 2, classes.toString() );
// bug on flexmojos/cobertura support, it does think the files are .java // bug on flexmojos/cobertura support, it does think the files are .java
MatcherAssert.assertThat( classes, MatcherAssert.assertThat( classes,
IsCollectionContaining.hasItems( "FlexMaven/sampleInclude.java", "FlexMaven/App.java" ) ); IsCollectionContaining.hasItems( "FlexMaven/sampleInclude.java", "FlexMaven/App.as" ) );
MatcherAssert.assertThat( classes, MatcherAssert.assertThat( classes,
CoreMatchers.not( IsCollectionContaining.hasItems( "FlexMaven/UntestedClass.java", CoreMatchers.not( IsCollectionContaining.hasItems( "FlexMaven/UntestedClass.as",
"FlexMaven/unusedInclude.java" ) ) ); "FlexMaven/unusedInclude.as" ) ) );
} }


@Test(enabled=false) @Test(enabled=false)
Expand All @@ -82,10 +82,10 @@ public void as3contentScanner()
List<String> classes = getCoveredClasses( v ); List<String> classes = getCoveredClasses( v );
Assert.assertEquals( classes.size(), 4, classes.toString() ); Assert.assertEquals( classes.size(), 4, classes.toString() );
// bug on flexmojos/cobertura support, it does think the files are .java // bug on flexmojos/cobertura support, it does think the files are .java
MatcherAssert.assertThat( classes, IsCollectionContaining.hasItems( "FlexMaven/UntestedClass.java", MatcherAssert.assertThat( classes, IsCollectionContaining.hasItems( "FlexMaven/UntestedClass.as",
"FlexMaven/sampleInclude.java", "FlexMaven/sampleInclude.as",
"FlexMaven/unusedInclude.java", "FlexMaven/unusedInclude.as",
"FlexMaven/App.java" ) ); "FlexMaven/App.as" ) );
} }


@SuppressWarnings( "unchecked" ) @SuppressWarnings( "unchecked" )
Expand Down

0 comments on commit 1d6b3ed

Please sign in to comment.