Browse Source

Merge pull request #13022 from izeye:polish-20180502

* pr/13022:
  Polish IgnoreTopLevelConverterNotFoundBindHandlerTests
pull/13061/head
Stephane Nicoll 8 years ago
parent
commit
ed594d7706
  1. 8
      spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/handler/IgnoreTopLevelConverterNotFoundBindHandlerTests.java

8
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/handler/IgnoreTopLevelConverterNotFoundBindHandlerTests.java

@ -20,7 +20,6 @@ import java.util.ArrayList; @@ -20,7 +20,6 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
@ -57,11 +56,6 @@ public class IgnoreTopLevelConverterNotFoundBindHandlerTests { @@ -57,11 +56,6 @@ public class IgnoreTopLevelConverterNotFoundBindHandlerTests {
this.binder = new Binder(this.sources);
}
@After
public void tearDown() {
this.sources.clear();
}
@Test
public void bindWhenHandlerNotPresentShouldFail() {
this.thrown.expectCause(instanceOf(ConverterNotFoundException.class));
@ -75,7 +69,7 @@ public class IgnoreTopLevelConverterNotFoundBindHandlerTests { @@ -75,7 +69,7 @@ public class IgnoreTopLevelConverterNotFoundBindHandlerTests {
}
@Test
public void bindWhenExceptionNotIgnorableShouldNotFail() {
public void bindWhenExceptionNotIgnorableShouldFail() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("example.foo", "1");
this.sources.add(source);

Loading…
Cancel
Save