flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - - Changed the test that it works on windows machines as "length" is implemented differently on Windows and on Mac
Date Wed, 16 Nov 2016 12:54:51 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 2201cf5d3 -> a64e768ca


- Changed the test that it works on windows machines as "length" is implemented differently
on Windows and on Mac


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/a64e768c
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/a64e768c
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/a64e768c

Branch: refs/heads/develop
Commit: a64e768ca21341664c7b8bb6023c49fe11ebad5c
Parents: 2201cf5
Author: Christofer Dutz <christofer.dutz@codecentric.de>
Authored: Wed Nov 16 13:54:41 2016 +0100
Committer: Christofer Dutz <christofer.dutz@codecentric.de>
Committed: Wed Nov 16 13:54:41 2016 +0100

----------------------------------------------------------------------
 .../org/apache/flex/flexjs/examples/tests/ExampleBuildTest.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a64e768c/examples/examples-tests/src/main/java/org/apache/flex/flexjs/examples/tests/ExampleBuildTest.java
----------------------------------------------------------------------
diff --git a/examples/examples-tests/src/main/java/org/apache/flex/flexjs/examples/tests/ExampleBuildTest.java
b/examples/examples-tests/src/main/java/org/apache/flex/flexjs/examples/tests/ExampleBuildTest.java
index 1842d8a..cde764f 100644
--- a/examples/examples-tests/src/main/java/org/apache/flex/flexjs/examples/tests/ExampleBuildTest.java
+++ b/examples/examples-tests/src/main/java/org/apache/flex/flexjs/examples/tests/ExampleBuildTest.java
@@ -59,7 +59,8 @@ public class ExampleBuildTest {
         File explodedWarDirectory = new File(buildDirectory, getArtifactId() + "-" + getVersion());
         Assert.assertTrue("The exploded WAR directory doesn't exist.", explodedWarDirectory.exists());
         Assert.assertTrue("The exploded WAR directory is not a directory.", explodedWarDirectory.isDirectory());
-        Assert.assertTrue("The exploded WAR directory is empty.", explodedWarDirectory.length()
> 0);
+        File[] content = explodedWarDirectory.listFiles();
+        Assert.assertTrue("The exploded WAR directory is empty.", content != null &&
content.length > 0);
 
         File warFile = new File(buildDirectory, getArtifactId() + "-" + getVersion() + ".war");
         Assert.assertTrue("The WAR file doesn't exist.", warFile.exists());


Mime
View raw message