You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polygene.apache.org by ni...@apache.org on 2015/06/17 05:10:10 UTC
[4/6] zest-qi4j git commit: There is an assumeNoException(),
which should be used.
There is an assumeNoException(), which should be used.
Project: http://git-wip-us.apache.org/repos/asf/zest-qi4j/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-qi4j/commit/ed98b17e
Tree: http://git-wip-us.apache.org/repos/asf/zest-qi4j/tree/ed98b17e
Diff: http://git-wip-us.apache.org/repos/asf/zest-qi4j/diff/ed98b17e
Branch: refs/heads/develop
Commit: ed98b17e27e9f72024e7120870137af1e0ed8eaf
Parents: b49e394
Author: Niclas Hedhman <ni...@hedhman.org>
Authored: Wed Jun 17 10:37:48 2015 +0800
Committer: Niclas Hedhman <ni...@hedhman.org>
Committed: Wed Jun 17 10:37:48 2015 +0800
----------------------------------------------------------------------
core/testsupport/src/main/java/org/qi4j/test/util/Assume.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/ed98b17e/core/testsupport/src/main/java/org/qi4j/test/util/Assume.java
----------------------------------------------------------------------
diff --git a/core/testsupport/src/main/java/org/qi4j/test/util/Assume.java b/core/testsupport/src/main/java/org/qi4j/test/util/Assume.java
index f8b23e4..f60b0d3 100644
--- a/core/testsupport/src/main/java/org/qi4j/test/util/Assume.java
+++ b/core/testsupport/src/main/java/org/qi4j/test/util/Assume.java
@@ -73,11 +73,12 @@ public class Assume
}
catch( SocketException ex )
{
- assumeFalse( true );
+ assumeNoException( ex );
}
}
/**
+ * // TODO: qi4j.org will soon go down.
* If called on a runtime with no access to qi4j.org on port 80, the test will halt and be ignored.
*/
public static void assumeConnectivity()
@@ -99,7 +100,7 @@ public class Assume
}
catch( IOException ex )
{
- assumeFalse( true );
+ assumeNoException( ex );
}
}