Polish
Closes gh-9827
This commit is contained in:
committed by
Andy Wilkinson
parent
18cfd9d3dd
commit
bd27d147d7
@@ -55,7 +55,7 @@ import org.springframework.util.ReflectionUtils;
|
||||
* <pre class="code">
|
||||
* @Test
|
||||
* public someTest() {
|
||||
* this.contex.withPropertyValues("spring.foo=biz").run((loaded) -> {
|
||||
* this.context.withPropertyValues("spring.foo=biz").run((loaded) -> {
|
||||
* assertThat(loaded).containsSingleBean(MyBean.class);
|
||||
* // other assertions
|
||||
* });
|
||||
@@ -73,8 +73,8 @@ import org.springframework.util.ReflectionUtils;
|
||||
* further checks are required on the cause of the failure: <pre class="code">
|
||||
* @Test
|
||||
* public someTest() {
|
||||
* this.contex.withPropertyValues("spring.foo=fails").run((loaded) -> {
|
||||
* assertThat(loaded).getFailure().hasCauseInstanceOf(BadPropertyExcepton.class);
|
||||
* this.context.withPropertyValues("spring.foo=fails").run((loaded) -> {
|
||||
* assertThat(loaded).getFailure().hasCauseInstanceOf(BadPropertyException.class);
|
||||
* // other assertions
|
||||
* });
|
||||
* }</pre>
|
||||
|
||||
@@ -64,7 +64,7 @@ public class AssertProviderApplicationContextTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getWhenTypeIsNullShouldThrowExecption() throws Exception {
|
||||
public void getWhenTypeIsNullShouldThrowException() throws Exception {
|
||||
this.thrown.expect(IllegalArgumentException.class);
|
||||
this.thrown.expectMessage("Type must not be null");
|
||||
AssertProviderApplicationContext.get(null, ApplicationContext.class,
|
||||
|
||||
Reference in New Issue
Block a user