add placeholder support for {application} in EnvironmentController (#867)

* add placeholder support for {application} in EnvironmentController

* add tests
This commit is contained in:
Jürgen Schmied
2018-03-01 23:01:33 +01:00
committed by Spencer Gibb
parent aa0afd28b6
commit 390e2b5e4f

View File

@@ -203,6 +203,20 @@ public class EnvironmentControllerTests {
assertThat(environment.getPropertySources().get(1).getSource().entrySet(),
hasSize(3));
}
@Test
public void testNameWithSlash() {
this.controller.labelled("foo(_)spam", "bar", "two");
Mockito.verify(this.repository).findOne("foo/spam", "bar", "two");
}
@Test
public void testLabelWithSlash() {
this.controller.labelled("foo", "bar", "two(_)spam");
Mockito.verify(this.repository).findOne("foo", "bar", "two/spam");
}
@Test
public void arrayOverridenInYaml() throws Exception {