Correct assertion that were inverted when converting to AssertJ

See gh-5819
This commit is contained in:
Andy Wilkinson
2016-05-05 17:53:39 +01:00
parent c76621b34d
commit a245845521

View File

@@ -242,7 +242,7 @@ public class ConditionalOnPropertyTests {
public void metaAnnotationConditionDoesNotMatchWhenPropertyIsNotSet()
throws Exception {
load(MetaAnnotation.class);
assertThat(this.context.containsBean("foo")).isTrue();
assertThat(this.context.containsBean("foo")).isFalse();
}
@Test
@@ -254,7 +254,7 @@ public class ConditionalOnPropertyTests {
@Test
public void metaAndDirectAnnotationConditionDoesNotMatchWhenOnlyMetaPropertyIsSet() {
load(MetaAnnotationAndDirectAnnotation.class, "my.feature.enabled=true");
assertThat(this.context.containsBean("foo")).isTrue();
assertThat(this.context.containsBean("foo")).isFalse();
}
@Test