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 71
71
<swagger-api .version>2.1.12</swagger-api .version>
72
72
<swagger-ui .version>4.1.3</swagger-ui .version>
73
73
<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>
75
75
<webjars-locator-core .version>0.45</webjars-locator-core .version>
76
76
<gmavenplus-plugin .version>1.8.1</gmavenplus-plugin .version>
77
77
<jaxb-impl .version>2.1</jaxb-impl .version>
87
87
<!-- swagger dependencies -->
88
88
<dependency >
89
89
<groupId >io.swagger.core.v3</groupId >
90
- <artifactId >swagger-models </artifactId >
90
+ <artifactId >swagger-core </artifactId >
91
91
<version >${swagger-api.version} </version >
92
92
</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 >
109
93
<!-- swagger ui -->
110
94
<dependency >
111
95
<groupId >org.webjars</groupId >
Original file line number Diff line number Diff line change 22
22
</dependency >
23
23
<dependency >
24
24
<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 >
42
26
</dependency >
43
27
<!-- Actuator dependencies -->
44
28
<dependency >
Original file line number Diff line number Diff line change 23
23
import java .nio .file .Path ;
24
24
import java .nio .file .Paths ;
25
25
26
- import nonapi .io .github .classgraph .utils .FileUtils ;
27
26
import org .junit .jupiter .api .Test ;
28
27
import org .slf4j .Logger ;
29
28
import org .slf4j .LoggerFactory ;
@@ -54,9 +53,9 @@ public abstract class AbstractSpringDocTest {
54
53
@ Autowired
55
54
protected MockMvc mockMvc ;
56
55
57
- public static String getContent (String fileName ) throws Exception {
56
+ public static String getContent (String fileName ) {
58
57
try {
59
- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
58
+ Path path = Paths .get (AbstractSpringDocTest .class .getClassLoader ().getResource (fileName ).toURI ());
60
59
byte [] fileBytes = Files .readAllBytes (path );
61
60
return new String (fileBytes , StandardCharsets .UTF_8 );
62
61
}
Original file line number Diff line number Diff line change 23
23
import java .nio .file .Path ;
24
24
import java .nio .file .Paths ;
25
25
26
- import nonapi .io .github .classgraph .utils .FileUtils ;
27
26
import org .junit .jupiter .api .Test ;
28
27
import org .slf4j .Logger ;
29
28
import org .slf4j .LoggerFactory ;
@@ -56,7 +55,7 @@ public abstract class AbstractSpringDocTest {
56
55
57
56
public static String getContent (String fileName ) throws Exception {
58
57
try {
59
- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
58
+ Path path = Paths .get (AbstractSpringDocTest .class .getClassLoader ().getResource (fileName ).toURI ());
60
59
byte [] fileBytes = Files .readAllBytes (path );
61
60
return new String (fileBytes , StandardCharsets .UTF_8 );
62
61
}
Original file line number Diff line number Diff line change 23
23
import java .nio .file .Path ;
24
24
import java .nio .file .Paths ;
25
25
26
- import nonapi .io .github .classgraph .utils .FileUtils ;
27
26
import org .junit .jupiter .api .Test ;
28
27
import org .slf4j .Logger ;
29
28
import org .slf4j .LoggerFactory ;
@@ -54,9 +53,9 @@ public abstract class AbstractSpringDocTest {
54
53
@ Autowired
55
54
protected MockMvc mockMvc ;
56
55
57
- public static String getContent (String fileName ) throws Exception {
56
+ public static String getContent (String fileName ) {
58
57
try {
59
- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
58
+ Path path = Paths .get (AbstractSpringDocTest .class .getClassLoader ().getResource (fileName ).toURI ());
60
59
byte [] fileBytes = Files .readAllBytes (path );
61
60
return new String (fileBytes , StandardCharsets .UTF_8 );
62
61
}
Original file line number Diff line number Diff line change 23
23
import java .nio .file .Path ;
24
24
import java .nio .file .Paths ;
25
25
26
- import nonapi .io .github .classgraph .utils .FileUtils ;
27
26
import org .junit .jupiter .api .Test ;
28
27
import org .slf4j .Logger ;
29
28
import org .slf4j .LoggerFactory ;
@@ -75,7 +74,7 @@ public abstract class AbstractSpringDocTest {
75
74
*/
76
75
public static String getContent (String fileName ) throws Exception {
77
76
try {
78
- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
77
+ Path path = Paths .get (AbstractSpringDocTest .class .getClassLoader ().getResource (fileName ).toURI ());
79
78
byte [] fileBytes = Files .readAllBytes (path );
80
79
return new String (fileBytes , StandardCharsets .UTF_8 );
81
80
}
Original file line number Diff line number Diff line change 23
23
import java .nio .file .Path ;
24
24
import java .nio .file .Paths ;
25
25
26
- import nonapi .io .github .classgraph .utils .FileUtils ;
27
26
import org .junit .jupiter .api .Test ;
28
27
import org .skyscreamer .jsonassert .JSONAssert ;
29
28
import org .springdoc .core .Constants ;
@@ -41,9 +40,9 @@ public abstract class AbstractSpringDocTest {
41
40
@ Autowired
42
41
private WebTestClient webTestClient ;
43
42
44
- public static String getContent (String fileName ) throws Exception {
43
+ public static String getContent (String fileName ) {
45
44
try {
46
- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
45
+ Path path = Paths .get (AbstractSpringDocTest .class .getClassLoader ().getResource (fileName ).toURI ());
47
46
byte [] fileBytes = Files .readAllBytes (path );
48
47
return new String (fileBytes , StandardCharsets .UTF_8 );
49
48
}
Original file line number Diff line number Diff line change 18
18
19
19
package test.org.springdoc.api
20
20
21
- import nonapi.io.github.classgraph.utils.FileUtils
22
21
import org.junit.jupiter.api.Test
23
22
import org.skyscreamer.jsonassert.JSONAssert
24
23
import org.springdoc.core.Constants
@@ -57,7 +56,7 @@ abstract class AbstractKotlinSpringDocTest {
57
56
@Throws(Exception ::class )
58
57
fun getContent (fileName : String ): String {
59
58
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())
61
60
val fileBytes = Files .readAllBytes(path)
62
61
return String (fileBytes, StandardCharsets .UTF_8 )
63
62
} catch (e: Exception ) {
Original file line number Diff line number Diff line change 23
23
import java .nio .file .Path ;
24
24
import java .nio .file .Paths ;
25
25
26
- import nonapi .io .github .classgraph .utils .FileUtils ;
27
26
import org .junit .jupiter .api .Test ;
28
27
import org .springdoc .core .Constants ;
29
28
@@ -53,9 +52,9 @@ public abstract class AbstractSpringDocTest {
53
52
@ Autowired
54
53
protected MockMvc mockMvc ;
55
54
56
- public static String getContent (String fileName ) throws Exception {
55
+ public static String getContent (String fileName ) {
57
56
try {
58
- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
57
+ Path path = Paths .get (AbstractSpringDocTest .class .getClassLoader ().getResource (fileName ).toURI ());
59
58
byte [] fileBytes = Files .readAllBytes (path );
60
59
return new String (fileBytes , StandardCharsets .UTF_8 );
61
60
}
Original file line number Diff line number Diff line change 5
5
import java .nio .file .Path ;
6
6
import java .nio .file .Paths ;
7
7
8
- import nonapi .io .github .classgraph .utils .FileUtils ;
9
8
import org .slf4j .Logger ;
10
9
import org .slf4j .LoggerFactory ;
11
10
@@ -23,9 +22,9 @@ public abstract class AbstractCommonTest {
23
22
@ Autowired
24
23
protected MockMvc mockMvc ;
25
24
26
- protected String getContent (String fileName ) throws Exception {
25
+ protected String getContent (String fileName ) {
27
26
try {
28
- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
27
+ Path path = Paths .get (AbstractCommonTest .class .getClassLoader ().getResource (fileName ).toURI ());
29
28
byte [] fileBytes = Files .readAllBytes (path );
30
29
return new String (fileBytes , StandardCharsets .UTF_8 );
31
30
}
Original file line number Diff line number Diff line change 5
5
import java .nio .file .Path ;
6
6
import java .nio .file .Paths ;
7
7
8
- import nonapi .io .github .classgraph .utils .FileUtils ;
9
8
import org .slf4j .Logger ;
10
9
import org .slf4j .LoggerFactory ;
11
10
@@ -30,7 +29,7 @@ public abstract class AbstractCommonTest {
30
29
31
30
protected String getContent (String fileName ) {
32
31
try {
33
- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
32
+ Path path = Paths .get (AbstractCommonTest .class .getClassLoader ().getResource (fileName ).toURI ());
34
33
byte [] fileBytes = Files .readAllBytes (path );
35
34
return new String (fileBytes , StandardCharsets .UTF_8 );
36
35
}
Original file line number Diff line number Diff line change 5
5
import java .nio .file .Path ;
6
6
import java .nio .file .Paths ;
7
7
8
- import nonapi .io .github .classgraph .utils .FileUtils ;
9
8
import org .slf4j .Logger ;
10
9
import org .slf4j .LoggerFactory ;
11
10
@@ -23,9 +22,9 @@ public abstract class AbstractCommonTest {
23
22
@ Autowired
24
23
protected WebTestClient webTestClient ;
25
24
26
- protected String getContent (String fileName ) throws Exception {
25
+ protected String getContent (String fileName ) {
27
26
try {
28
- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
27
+ Path path = Paths .get (AbstractCommonTest .class .getClassLoader ().getResource (fileName ).toURI ());
29
28
byte [] fileBytes = Files .readAllBytes (path );
30
29
return new String (fileBytes , StandardCharsets .UTF_8 );
31
30
}
Original file line number Diff line number Diff line change 23
23
import java .nio .file .Path ;
24
24
import java .nio .file .Paths ;
25
25
26
- import nonapi .io .github .classgraph .utils .FileUtils ;
27
26
import org .springdoc .core .Constants ;
28
27
import org .springdoc .core .SpringDocConfigProperties ;
29
28
import org .springdoc .core .SpringDocConfiguration ;
@@ -54,7 +53,7 @@ public abstract class AbstractSpringDocTest extends AbstractCommonTest {
54
53
55
54
protected String getContent (String fileName ) {
56
55
try {
57
- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
56
+ Path path = Paths .get (AbstractSpringDocTest .class .getClassLoader ().getResource (fileName ).toURI ());
58
57
byte [] fileBytes = Files .readAllBytes (path );
59
58
return new String (fileBytes , StandardCharsets .UTF_8 );
60
59
}
Original file line number Diff line number Diff line change 5
5
import java .nio .file .Path ;
6
6
import java .nio .file .Paths ;
7
7
8
- import nonapi .io .github .classgraph .utils .FileUtils ;
9
-
10
8
import org .springframework .beans .factory .annotation .Autowired ;
11
9
import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
12
10
import org .springframework .test .context .ActiveProfiles ;
@@ -26,7 +24,7 @@ public abstract class AbstractCommonTest {
26
24
27
25
protected String getContent (String fileName ) throws Exception {
28
26
try {
29
- Path path = Paths .get (FileUtils .class .getClassLoader ().getResource (fileName ).toURI ());
27
+ Path path = Paths .get (AbstractCommonTest .class .getClassLoader ().getResource (fileName ).toURI ());
30
28
byte [] fileBytes = Files .readAllBytes (path );
31
29
return new String (fileBytes , StandardCharsets .UTF_8 );
32
30
}
You can’t perform that action at this time.
0 commit comments