Removed code that was marked as deprecated.
Also updated test that tested deprecated code. resolves #366
This commit is contained in:
committed by
Michael Minella
parent
1ae7930d09
commit
76309b89ff
@@ -21,7 +21,6 @@ import static org.junit.Assert.assertThat;
|
||||
|
||||
@RunWith(Suite.class)
|
||||
@SuiteClasses({
|
||||
TaskPropertiesTests.CloseContextEnableTest.class,
|
||||
TaskPropertiesTests.CloseContextEnabledTest.class,
|
||||
|
||||
})
|
||||
@@ -35,12 +34,6 @@ public class TaskPropertiesTests {
|
||||
public void test() {
|
||||
assertThat(taskProperties.getClosecontextEnabled(), is(false));
|
||||
}
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes={TaskPropertiesTests.Config.class}, properties = { "spring.cloud.task.closecontextEnable=false" })
|
||||
@DirtiesContext
|
||||
public static class CloseContextEnableTest extends TaskPropertiesTests {
|
||||
}
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes={TaskPropertiesTests.Config.class}, properties = { "spring.cloud.task.closecontextEnabled=false" })
|
||||
|
||||
@@ -159,7 +159,7 @@ public class TaskLifecycleListenerTests {
|
||||
@Test
|
||||
public void testNoClosingOfContext() {
|
||||
ConfigurableApplicationContext applicationContext = SpringApplication.run(new Class[]{TestDefaultConfiguration.class, PropertyPlaceholderAutoConfiguration.class},
|
||||
new String[] {"--spring.cloud.task.closecontext_enable=false"});
|
||||
new String[] {"--spring.cloud.task.closecontext_enabled=false"});
|
||||
|
||||
try {
|
||||
assertTrue(applicationContext.isActive());
|
||||
|
||||
Reference in New Issue
Block a user