File tree Expand file tree Collapse file tree 14 files changed +21
-66
lines changed
springdoc-openapi-data-rest/src/test/java/test/org/springdoc/api
springdoc-openapi-groovy/src/test/groovy/test/org/springdoc/api
springdoc-openapi-hateoas/src/test/java/test/org/springdoc/api
springdoc-openapi-javadoc/src/test/java/test/org/springdoc/api
springdoc-openapi-kotlin/src/test
java/test/org/springdoc/api
kotlin/test/org/springdoc/api
springdoc-openapi-security/src/test/java/test/org/springdoc/api
springdoc-openapi-ui/src/test/java/test/org/springdoc/ui
springdoc-openapi-webflux-core/src/test/java/test/org/springdoc/api
springdoc-openapi-webflux-ui/src/test/java/test/org/springdoc/ui
springdoc-openapi-webmvc-core/src/test/java/test/org/springdoc/api Expand file tree Collapse file tree 14 files changed +21
-66
lines changed Original file line number Diff line number Diff line change 7171 <swagger-api .version>2.1.12</swagger-api .version>
7272 <swagger-ui .version>4.1.3</swagger-ui .version>
7373 <spring-security-oauth2 .version>2.3.8.RELEASE</spring-security-oauth2 .version>
74- <classgraph .version>4.8.117 </classgraph .version>
74+ <classgraph .version>4.8.138 </classgraph .version>
7575 <webjars-locator-core .version>0.45</webjars-locator-core .version>
7676 <gmavenplus-plugin .version>1.8.1</gmavenplus-plugin .version>
7777 <jaxb-impl .version>2.1</jaxb-impl .version>
8787 <!-- swagger dependencies -->
8888 <dependency >
8989 <groupId >io.swagger.core.v3</groupId >
90- <artifactId >swagger-models </artifactId >
90+ <artifactId >swagger-core </artifactId >
9191 <version >${swagger-api.version} </version >
9292 </dependency >
93- <dependency >
94- <groupId >io.swagger.core.v3</groupId >
95- <artifactId >swagger-annotations</artifactId >
96- <version >${swagger-api.version} </version >
97- </dependency >
98- <dependency >
99- <groupId >io.swagger.core.v3</groupId >
100- <artifactId >swagger-integration</artifactId >
101- <version >${swagger-api.version} </version >
102- <exclusions >
103- <exclusion >
104- <groupId >io.github.classgraph</groupId >
105- <artifactId >classgraph</artifactId >
106- </exclusion >
107- </exclusions >
108- </dependency >
10993 <!-- swagger ui -->
11094 <dependency >
11195 <groupId >org.webjars</groupId >
Original file line number Diff line number Diff line change 2222 </dependency >
2323 <dependency >
2424 <groupId >io.swagger.core.v3</groupId >
25- <artifactId >swagger-models</artifactId >
26- </dependency >
27- <dependency >
28- <groupId >io.swagger.core.v3</groupId >
29- <artifactId >swagger-annotations</artifactId >
30- </dependency >
31- <dependency >
32- <groupId >io.swagger.core.v3</groupId >
33- <artifactId >swagger-integration</artifactId >
34- </dependency >
35- <dependency >
36- <groupId >io.github.classgraph</groupId >
37- <artifactId >classgraph</artifactId >
38- </dependency >
39- <dependency >
40- <groupId >org.apache.commons</groupId >
41- <artifactId >commons-lang3</artifactId >
25+ <artifactId >swagger-core</artifactId >
4226 </dependency >
4327 <!-- Actuator dependencies -->
4428 <dependency >
Original file line number Diff line number Diff line change 2323import java .nio .file .Path ;
2424import java .nio .file .Paths ;
2525
26- import nonapi .io .github .classgraph .utils .FileUtils ;
2726import org .junit .jupiter .api .Test ;
2827import org .slf4j .Logger ;
2928import org .slf4j .LoggerFactory ;
@@ -54,9 +53,9 @@ public abstract class AbstractSpringDocTest {
5453 @ Autowired
5554 protected MockMvc mockMvc ;
5655
57- public static String getContent (String fileName ) throws Exception {
56+ public static String getContent (String fileName ) {
5857 try {
59- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
58+ Path path = Paths .get (AbstractSpringDocTest .class .getClassLoader ().getResource (fileName ).toURI ());
6059 byte [] fileBytes = Files .readAllBytes (path );
6160 return new String (fileBytes , StandardCharsets .UTF_8 );
6261 }
Original file line number Diff line number Diff line change 2323import java .nio .file .Path ;
2424import java .nio .file .Paths ;
2525
26- import nonapi .io .github .classgraph .utils .FileUtils ;
2726import org .junit .jupiter .api .Test ;
2827import org .slf4j .Logger ;
2928import org .slf4j .LoggerFactory ;
@@ -56,7 +55,7 @@ public abstract class AbstractSpringDocTest {
5655
5756 public static String getContent (String fileName ) throws Exception {
5857 try {
59- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
58+ Path path = Paths .get (AbstractSpringDocTest .class .getClassLoader ().getResource (fileName ).toURI ());
6059 byte [] fileBytes = Files .readAllBytes (path );
6160 return new String (fileBytes , StandardCharsets .UTF_8 );
6261 }
Original file line number Diff line number Diff line change 2323import java .nio .file .Path ;
2424import java .nio .file .Paths ;
2525
26- import nonapi .io .github .classgraph .utils .FileUtils ;
2726import org .junit .jupiter .api .Test ;
2827import org .slf4j .Logger ;
2928import org .slf4j .LoggerFactory ;
@@ -54,9 +53,9 @@ public abstract class AbstractSpringDocTest {
5453 @ Autowired
5554 protected MockMvc mockMvc ;
5655
57- public static String getContent (String fileName ) throws Exception {
56+ public static String getContent (String fileName ) {
5857 try {
59- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
58+ Path path = Paths .get (AbstractSpringDocTest .class .getClassLoader ().getResource (fileName ).toURI ());
6059 byte [] fileBytes = Files .readAllBytes (path );
6160 return new String (fileBytes , StandardCharsets .UTF_8 );
6261 }
Original file line number Diff line number Diff line change 2323import java .nio .file .Path ;
2424import java .nio .file .Paths ;
2525
26- import nonapi .io .github .classgraph .utils .FileUtils ;
2726import org .junit .jupiter .api .Test ;
2827import org .slf4j .Logger ;
2928import org .slf4j .LoggerFactory ;
@@ -75,7 +74,7 @@ public abstract class AbstractSpringDocTest {
7574 */
7675 public static String getContent (String fileName ) throws Exception {
7776 try {
78- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
77+ Path path = Paths .get (AbstractSpringDocTest .class .getClassLoader ().getResource (fileName ).toURI ());
7978 byte [] fileBytes = Files .readAllBytes (path );
8079 return new String (fileBytes , StandardCharsets .UTF_8 );
8180 }
Original file line number Diff line number Diff line change 2323import java .nio .file .Path ;
2424import java .nio .file .Paths ;
2525
26- import nonapi .io .github .classgraph .utils .FileUtils ;
2726import org .junit .jupiter .api .Test ;
2827import org .skyscreamer .jsonassert .JSONAssert ;
2928import org .springdoc .core .Constants ;
@@ -41,9 +40,9 @@ public abstract class AbstractSpringDocTest {
4140 @ Autowired
4241 private WebTestClient webTestClient ;
4342
44- public static String getContent (String fileName ) throws Exception {
43+ public static String getContent (String fileName ) {
4544 try {
46- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
45+ Path path = Paths .get (AbstractSpringDocTest .class .getClassLoader ().getResource (fileName ).toURI ());
4746 byte [] fileBytes = Files .readAllBytes (path );
4847 return new String (fileBytes , StandardCharsets .UTF_8 );
4948 }
Original file line number Diff line number Diff line change 1818
1919package test.org.springdoc.api
2020
21- import nonapi.io.github.classgraph.utils.FileUtils
2221import org.junit.jupiter.api.Test
2322import org.skyscreamer.jsonassert.JSONAssert
2423import org.springdoc.core.Constants
@@ -57,7 +56,7 @@ abstract class AbstractKotlinSpringDocTest {
5756 @Throws(Exception ::class )
5857 fun getContent (fileName : String ): String {
5958 try {
60- val path = Paths .get(FileUtils ::class .java.classLoader.getResource(fileName)!! .toURI())
59+ val path = Paths .get(AbstractKotlinSpringDocTest ::class .java.classLoader.getResource(fileName)!! .toURI())
6160 val fileBytes = Files .readAllBytes(path)
6261 return String (fileBytes, StandardCharsets .UTF_8 )
6362 } catch (e: Exception ) {
Original file line number Diff line number Diff line change 2323import java .nio .file .Path ;
2424import java .nio .file .Paths ;
2525
26- import nonapi .io .github .classgraph .utils .FileUtils ;
2726import org .junit .jupiter .api .Test ;
2827import org .springdoc .core .Constants ;
2928
@@ -53,9 +52,9 @@ public abstract class AbstractSpringDocTest {
5352 @ Autowired
5453 protected MockMvc mockMvc ;
5554
56- public static String getContent (String fileName ) throws Exception {
55+ public static String getContent (String fileName ) {
5756 try {
58- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
57+ Path path = Paths .get (AbstractSpringDocTest .class .getClassLoader ().getResource (fileName ).toURI ());
5958 byte [] fileBytes = Files .readAllBytes (path );
6059 return new String (fileBytes , StandardCharsets .UTF_8 );
6160 }
Original file line number Diff line number Diff line change 55import java .nio .file .Path ;
66import java .nio .file .Paths ;
77
8- import nonapi .io .github .classgraph .utils .FileUtils ;
98import org .slf4j .Logger ;
109import org .slf4j .LoggerFactory ;
1110
@@ -23,9 +22,9 @@ public abstract class AbstractCommonTest {
2322 @ Autowired
2423 protected MockMvc mockMvc ;
2524
26- protected String getContent (String fileName ) throws Exception {
25+ protected String getContent (String fileName ) {
2726 try {
28- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
27+ Path path = Paths .get (AbstractCommonTest .class .getClassLoader ().getResource (fileName ).toURI ());
2928 byte [] fileBytes = Files .readAllBytes (path );
3029 return new String (fileBytes , StandardCharsets .UTF_8 );
3130 }
You can’t perform that action at this time.
0 commit comments