Skip to content

Commit 231c178

Browse files
author
Mike Reiche
committed
Merge branch 'feature/property-resolver' into testerra2
2 parents 089203b + 14a48c1 commit 231c178

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

core/src/main/java/eu/tsystems/mms/tic/testframework/common/PropertyManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public final class PropertyManager {
6666
(propertyResolvers != null?propertyResolvers.stream():Stream.empty()),
6767
Stream.of(
6868
threadLocalPropertyResolver,
69-
filePropertyResolver,
70-
systemPropertyResolver
69+
systemPropertyResolver,
70+
filePropertyResolver
7171
)
7272
);
7373
});

integration-tests/src/test/java/eu/tsystems/mms/tic/testframework/test/common/PropertyManagerTest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,19 @@ public void testT51_ClearAllProperties() {
433433
Assert.assertNull(PropertyManager.getProperty("thread.property"));
434434
}
435435

436+
@Test
437+
public void test_priority() {
438+
439+
String property = "test";
440+
String expected = "huhu";
441+
442+
Assert.assertEquals(PropertyManager.getProperty(property), expected);
443+
444+
System.setProperty("test", "haha");
445+
446+
Assert.assertNotEquals(PropertyManager.getProperty(property), expected);
447+
}
448+
436449
@Test
437450
public void test_resolvePriorityProperty() {
438451
final String propertyKey = "any-property";

0 commit comments

Comments
 (0)