@ -105,6 +107,8 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@@ -105,6 +107,8 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@ -123,8 +127,8 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@@ -123,8 +127,8 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@ -153,7 +157,7 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@@ -153,7 +157,7 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@ -167,14 +171,16 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@@ -167,14 +171,16 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
"Cannot use main method as no @SpringBootConfiguration-annotated class is available");
@ -285,7 +291,7 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@@ -285,7 +291,7 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@ -462,9 +468,9 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@@ -462,9 +468,9 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@ -507,7 +513,7 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@@ -507,7 +513,7 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@ -515,7 +521,8 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@@ -515,7 +521,8 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@ -530,6 +537,7 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@@ -530,6 +537,7 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@ -544,24 +552,24 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@@ -544,24 +552,24 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
@ -287,7 +288,7 @@ public class SpringBootTestContextBootstrapper extends DefaultTestContextBootstr
@@ -287,7 +288,7 @@ public class SpringBootTestContextBootstrapper extends DefaultTestContextBootstr
@ -320,22 +321,22 @@ public class SpringBootTestContextBootstrapper extends DefaultTestContextBootstr
@@ -320,22 +321,22 @@ public class SpringBootTestContextBootstrapper extends DefaultTestContextBootstr
Assert.notNull(applicationContext,"'applicationContext' must not be null");
this.startupFailure=startupFailure;
@ -80,7 +81,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -80,7 +81,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
throwAssertionError(contextFailedToStartWhenExpecting("to have bean named:%n <%s>",name));
throwAssertionError(
contextFailedToStartWhenExpecting(this.startupFailure,"to have bean named:%n <%s>",name));
}
if(findBean(name)==null){
throwAssertionError(newBasicErrorMessageFactory(
@ -123,7 +125,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -123,7 +125,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@ -170,7 +173,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -170,7 +173,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@ -194,7 +198,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -194,7 +198,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@ -221,7 +226,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -221,7 +226,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
.as("Bean names of type <%s> from <%s>",type,getApplicationContext());
@ -267,7 +273,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -267,7 +273,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@ -280,7 +287,7 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -280,7 +287,7 @@ public class ApplicationContextAssert<C extends ApplicationContext>
returnAssertions.assertThat(bean).as("Bean of type <%s> from <%s>",type,getApplicationContext());
@ -325,7 +332,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -325,7 +332,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
throwAssertionError(contextFailedToStartWhenExpecting("to contain a bean of name:%n <%s>",name));
throwAssertionError(
contextFailedToStartWhenExpecting(this.startupFailure,"to contain a bean of name:%n <%s>",name));
}
Objectbean=findBean(name);
returnAssertions.assertThat(bean).as("Bean of name <%s> from <%s>",name,getApplicationContext());
@ -351,8 +359,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -351,8 +359,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@ -364,7 +372,7 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -364,7 +372,7 @@ public class ApplicationContextAssert<C extends ApplicationContext>
.as("Bean of name <%s> and type <%s> from <%s>",name,type,getApplicationContext());
}
privateObjectfindBean(Stringname){
private@NullableObjectfindBean(Stringname){
try{
returngetApplicationContext().getBean(name);
}
@ -409,7 +417,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -409,7 +417,8 @@ public class ApplicationContextAssert<C extends ApplicationContext>
.as("Beans of type <%s> from <%s>",type,getApplicationContext());
@ -456,7 +465,7 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -456,7 +465,7 @@ public class ApplicationContextAssert<C extends ApplicationContext>
*/
publicApplicationContextAssert<C>hasNotFailed(){
if(this.startupFailure!=null){
throwAssertionError(contextFailedToStartWhenExpecting("to have not failed"));
throwAssertionError(contextFailedToStartWhenExpecting(this.startupFailure,"to have not failed"));
}
returnthis;
}
@ -465,12 +474,13 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@@ -465,12 +474,13 @@ public class ApplicationContextAssert<C extends ApplicationContext>
@ -213,7 +215,7 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@@ -213,7 +215,7 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@ -258,7 +260,7 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@@ -258,7 +260,7 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@ -295,7 +297,7 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@@ -295,7 +297,7 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@ -370,7 +372,7 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@@ -370,7 +372,7 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@ -392,6 +394,8 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@@ -392,6 +394,8 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@ -471,11 +475,11 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@@ -471,11 +475,11 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@ -503,9 +507,9 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@@ -503,9 +507,9 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@ -561,7 +565,7 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@@ -561,7 +565,7 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@ -573,14 +577,14 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@@ -573,14 +577,14 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
@ -66,7 +67,7 @@ public class JacksonTester<T> extends AbstractJsonMarshalTester<T> {
@@ -66,7 +67,7 @@ public class JacksonTester<T> extends AbstractJsonMarshalTester<T> {
privatefinalObjectMapperobjectMapper;
privateClass<?>view;
private@NullableClass<?>view;
/**
*Createanew{@linkJacksonTester}instance.
@ -87,7 +88,8 @@ public class JacksonTester<T> extends AbstractJsonMarshalTester<T> {
@@ -87,7 +88,8 @@ public class JacksonTester<T> extends AbstractJsonMarshalTester<T> {
Assert.notNull(objectMapper,"'objectMapper' must not be null");
this.objectMapper=objectMapper;
@ -100,7 +102,9 @@ public class JacksonTester<T> extends AbstractJsonMarshalTester<T> {
@@ -100,7 +102,9 @@ public class JacksonTester<T> extends AbstractJsonMarshalTester<T> {
@ -167,7 +171,11 @@ public class JacksonTester<T> extends AbstractJsonMarshalTester<T> {
@@ -167,7 +171,11 @@ public class JacksonTester<T> extends AbstractJsonMarshalTester<T> {
@ -36,7 +37,7 @@ public final class JsonContent<T> implements AssertProvider<JsonContentAssert> {
@@ -36,7 +37,7 @@ public final class JsonContent<T> implements AssertProvider<JsonContentAssert> {
privatefinalClass<?>resourceLoadClass;
privatefinalResolvableTypetype;
privatefinal@NullableResolvableTypetype;
privatefinalStringjson;
@ -48,7 +49,7 @@ public final class JsonContent<T> implements AssertProvider<JsonContentAssert> {
@@ -48,7 +49,7 @@ public final class JsonContent<T> implements AssertProvider<JsonContentAssert> {
@ -59,7 +60,7 @@ public final class JsonContent<T> implements AssertProvider<JsonContentAssert> {
@@ -59,7 +60,7 @@ public final class JsonContent<T> implements AssertProvider<JsonContentAssert> {
@ -74,7 +75,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@@ -74,7 +75,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@ -86,7 +87,8 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@@ -86,7 +87,8 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@ -98,7 +100,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@@ -98,7 +100,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@ -115,7 +117,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@@ -115,7 +117,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
returnisEqualToJson(resource);
}
failWithMessage("Unsupported type for JSON assert %s",expected.getClass());
returnnull;
returnthis;
}
/**
@ -128,7 +130,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@@ -128,7 +130,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@ -426,7 +428,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@@ -426,7 +428,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@ -443,7 +445,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@@ -443,7 +445,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
returnisNotEqualToJson(resource);
}
failWithMessage("Unsupported type for JSON assert %s",expected.getClass());
returnnull;
returnthis;
}
/**
@ -456,7 +458,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@@ -456,7 +458,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@ -985,7 +987,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@@ -985,7 +987,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@ -994,7 +996,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@@ -994,7 +996,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@ -1010,7 +1012,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@@ -1010,7 +1012,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@ -1026,7 +1028,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@@ -1026,7 +1028,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@ -1099,7 +1101,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@@ -1099,7 +1101,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@ -1128,7 +1130,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@@ -1128,7 +1130,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
@ -41,7 +42,7 @@ public final class ObjectContent<T> implements AssertProvider<ObjectContentAsser
@@ -41,7 +42,7 @@ public final class ObjectContent<T> implements AssertProvider<ObjectContentAsser
@ -42,7 +44,7 @@ public class SpringBootMockServletContext extends MockServletContext {
@@ -42,7 +44,7 @@ public class SpringBootMockServletContext extends MockServletContext {
@ -86,7 +88,7 @@ public class SpringBootMockServletContext extends MockServletContext {
@@ -86,7 +88,7 @@ public class SpringBootMockServletContext extends MockServletContext {