Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 42aa6d5

Browse files
committed
#252 Added test for trimming properties
1 parent ed27abb commit 42aa6d5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/java/com/marklogic/appdeployer/DefaultAppConfigFactoryTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ public class DefaultAppConfigFactoryTest extends Assert {
1616

1717
private DefaultAppConfigFactory sut;
1818

19+
@Test
20+
public void trimProperties() {
21+
sut = new DefaultAppConfigFactory(new SimplePropertySource("mlHost", " has-spaces ", "mlUsername", "has spaces"));
22+
AppConfig config = sut.newAppConfig();
23+
assertEquals("has-spaces", config.getHost());
24+
assertEquals("has spaces", config.getRestAdminUsername());
25+
}
1926
@Test
2027
public void gradleStyleProperties() {
2128
sut = new DefaultAppConfigFactory(new SimplePropertySource("mlHost", "somehost", "mlUsername", "someuser"));

0 commit comments

Comments
 (0)