Uningnored some tests to do with binding to lists
See https://github.com/spring-projects/spring-boot/issues/9137
This commit is contained in:
@@ -58,13 +58,12 @@ public class ConfigurationPropertiesRebinderListIntegrationTests {
|
||||
private ConfigurableEnvironment environment;
|
||||
|
||||
@Test
|
||||
@Ignore // TODO: reinstate this if possible see https://github.com/spring-projects/spring-boot/issues/9137
|
||||
@DirtiesContext
|
||||
public void testAppendProperties() throws Exception {
|
||||
assertEquals("[one, two]", this.properties.getMessages().toString());
|
||||
EnvironmentTestUtils.addEnvironment(this.environment, "messages[0]:foo");
|
||||
this.rebinder.rebind();
|
||||
assertEquals("[foo, two]", this.properties.getMessages().toString());
|
||||
assertEquals("[foo]", this.properties.getMessages().toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -91,7 +90,6 @@ public class ConfigurationPropertiesRebinderListIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore // TODO: reinstate this if possible see https://github.com/spring-projects/spring-boot/issues/9137
|
||||
@DirtiesContext
|
||||
public void testReplacePropertiesWithCommaSeparated() throws Exception {
|
||||
assertEquals("[one, two]", this.properties.getMessages().toString());
|
||||
|
||||
@@ -20,7 +20,6 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -61,14 +60,13 @@ public class RefreshScopeListBindingIntegrationTests {
|
||||
private ConfigurableEnvironment environment;
|
||||
|
||||
@Test
|
||||
@Ignore // TODO: reinstate this if possible https://github.com/spring-projects/spring-boot/issues/9137
|
||||
@DirtiesContext
|
||||
public void testAppendProperties() throws Exception {
|
||||
assertEquals("[one, two]", this.properties.getMessages().toString());
|
||||
assertTrue(this.properties instanceof Advised);
|
||||
EnvironmentTestUtils.addEnvironment(this.environment, "test.messages[0]:foo");
|
||||
this.scope.refreshAll();
|
||||
assertEquals("[foo, two]", this.properties.getMessages().toString());
|
||||
assertEquals("[foo]", this.properties.getMessages().toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user