TAMAYA-348 Clarified/fixed init routine, adapted test.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/ec2c803e Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/ec2c803e Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/ec2c803e Branch: refs/heads/master Commit: ec2c803e6b843acb8ed99f8a1fc6bf6813488979 Parents: b22761e Author: Anatole Tresch <[email protected]> Authored: Tue Nov 20 08:15:52 2018 +0100 Committer: Anatole Tresch <[email protected]> Committed: Tue Nov 20 08:15:52 2018 +0100 ---------------------------------------------------------------------- .../spisupport/propertysource/EnvironmentPropertySourceTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/ec2c803e/code/spi-support/src/test/java/org/apache/tamaya/spisupport/propertysource/EnvironmentPropertySourceTest.java ---------------------------------------------------------------------- diff --git a/code/spi-support/src/test/java/org/apache/tamaya/spisupport/propertysource/EnvironmentPropertySourceTest.java b/code/spi-support/src/test/java/org/apache/tamaya/spisupport/propertysource/EnvironmentPropertySourceTest.java index bff46d7..2bec2e4 100644 --- a/code/spi-support/src/test/java/org/apache/tamaya/spisupport/propertysource/EnvironmentPropertySourceTest.java +++ b/code/spi-support/src/test/java/org/apache/tamaya/spisupport/propertysource/EnvironmentPropertySourceTest.java @@ -49,7 +49,7 @@ public class EnvironmentPropertySourceTest { System.setProperty("tamaya.envprops.prefix", "fakeprefix"); System.setProperty("tamaya.envprops.disable", "true"); localEnvironmentPropertySource = new EnvironmentPropertySource(); - assertThat(localEnvironmentPropertySource.getPrefix()).isNull(); // is not fakeprefix because disabled + assertThat(localEnvironmentPropertySource.getPrefix()).isEqualTo("fakeprefix"); assertThat(localEnvironmentPropertySource.isDisabled()).isTrue(); assertThat(localEnvironmentPropertySource.get(System.getenv().entrySet().iterator().next().getKey())) .isNull();
