Skip to content

Commit aaf8383

Browse files
author
João Dias
committed
Fix Unit tests
1 parent 0cc0098 commit aaf8383

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

springdoc-openapi-security/pom.xml

+10
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
<artifactId>springdoc-openapi-security</artifactId>
1111

12+
<properties>
13+
<jaxb-impl.version>2.1</jaxb-impl.version>
14+
</properties>
15+
1216
<dependencies>
1317
<!-- springdoc-common -->
1418
<dependency>
@@ -41,6 +45,12 @@
4145
<artifactId>hibernate-validator</artifactId>
4246
<scope>test</scope>
4347
</dependency>
48+
<dependency>
49+
<groupId>javax.xml</groupId>
50+
<artifactId>jaxb-impl</artifactId>
51+
<version>${jaxb-impl.version}</version>
52+
<scope>test</scope>
53+
</dependency>
4454
</dependencies>
4555

4656
</project>

springdoc-openapi-webmvc-core/src/test/java/test/org/springdoc/api/app72/CacheAutoConfigurationTest1.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package test.org.springdoc.api.app72;
22

33
import org.junit.Test;
4+
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
45
import org.springframework.boot.autoconfigure.SpringBootApplication;
56
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
67

@@ -17,7 +18,7 @@ public void cache_configuration_loaded_when_not_disabled_explicitly() {
1718
.run(context -> assertThat(context)
1819
.hasNotFailed()
1920
.hasBean("openApiResource")
20-
.doesNotHaveBean("beanFactoryPostProcessor1")
21+
.hasBean("beanFactoryPostProcessor1")
2122
.doesNotHaveBean("beanFactoryPostProcessor2")
2223
);
2324
}
@@ -29,7 +30,7 @@ public void cache_configuration_loaded_when_disabled_explicitly() {
2930
.run(context -> assertThat(context)
3031
.hasNotFailed()
3132
.hasBean("openApiResource")
32-
.doesNotHaveBean("beanFactoryPostProcessor1")
33+
.hasBean("beanFactoryPostProcessor1")
3334
.doesNotHaveBean("beanFactoryPostProcessor2")
3435
);
3536
}

0 commit comments

Comments
 (0)