Repository: polygene-java Updated Branches: refs/heads/develop 05ddab16a -> 6e5d9119c
On the CI, the system property of "user.home" doesn't match the environment variable $HOME. Signed-off-by: niclas <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/6e5d9119 Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/6e5d9119 Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/6e5d9119 Branch: refs/heads/develop Commit: 6e5d9119ccd39c815f034ba226c4226b67f5be8c Parents: 05ddab1 Author: niclas <[email protected]> Authored: Sun Jun 4 18:42:19 2017 +0800 Committer: niclas <[email protected]> Committed: Sun Jun 4 18:42:19 2017 +0800 ---------------------------------------------------------------------- .../runtime/instantiation/ConfigurationInstantiationTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/polygene-java/blob/6e5d9119/core/runtime/src/test/java/org/apache/polygene/runtime/instantiation/ConfigurationInstantiationTest.java ---------------------------------------------------------------------- diff --git a/core/runtime/src/test/java/org/apache/polygene/runtime/instantiation/ConfigurationInstantiationTest.java b/core/runtime/src/test/java/org/apache/polygene/runtime/instantiation/ConfigurationInstantiationTest.java index 59b6880..69824d7 100644 --- a/core/runtime/src/test/java/org/apache/polygene/runtime/instantiation/ConfigurationInstantiationTest.java +++ b/core/runtime/src/test/java/org/apache/polygene/runtime/instantiation/ConfigurationInstantiationTest.java @@ -31,6 +31,7 @@ import org.apache.polygene.test.AbstractPolygeneTest; import org.junit.Test; import static org.hamcrest.core.IsEqual.equalTo; +import static org.hamcrest.core.IsNull.notNullValue; import static org.junit.Assert.assertThat; public class ConfigurationInstantiationTest extends AbstractPolygeneTest @@ -54,7 +55,7 @@ public class ConfigurationInstantiationTest extends AbstractPolygeneTest assertThat( myService.osName(), equalTo( System.getProperty( "os.name" ) ) ); if( myService.osName().equalsIgnoreCase( "Linux" ) ) { - assertThat( myService.home(), equalTo( System.getProperty( "user.home" ) ) ); + assertThat( myService.home(), notNullValue() ); } assertThat( myService.path(), equalTo( System.getProperty( "path" ) ) ); } @@ -104,7 +105,6 @@ public class ConfigurationInstantiationTest extends AbstractPolygeneTest public void remove() throws Exception { - } }
