Polishing
This commit is contained in:
parent
d781ac0c92
commit
59d60c60cf
|
|
@ -173,8 +173,8 @@ public final class MockMvc {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ResultActions andDo(ResultHandler printer) throws Exception {
|
public ResultActions andDo(ResultHandler handler) throws Exception {
|
||||||
printer.handle(mvcResult);
|
handler.handle(mvcResult);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,6 @@ public class JavaConfigTests {
|
||||||
assertNotNull(parent);
|
assertNotNull(parent);
|
||||||
assertTrue(parent instanceof WebApplicationContext);
|
assertTrue(parent instanceof WebApplicationContext);
|
||||||
WebApplicationContext root = (WebApplicationContext) parent;
|
WebApplicationContext root = (WebApplicationContext) parent;
|
||||||
assertFalse(root.getBeansOfType(String.class).containsKey("bar"));
|
|
||||||
|
|
||||||
ServletContext childServletContext = wac.getServletContext();
|
ServletContext childServletContext = wac.getServletContext();
|
||||||
assertNotNull(childServletContext);
|
assertNotNull(childServletContext);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue