add placeholder support for {application} in EnvironmentController (#867)
* add placeholder support for {application} in EnvironmentController
* add tests
This commit is contained in:
committed by
Spencer Gibb
parent
aa0afd28b6
commit
390e2b5e4f
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user