Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
35dc7982
Commit
35dc7982
authored
Jun 11, 2019
by
Issam El-atif
Committed by
Phillip Webb
Jun 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deployment tests JUnit 5 checkstyle issues
See gh-17106
parent
c11f25bf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
16 deletions
+16
-16
SampleGlassfishDeployApplicationIT.java
.../test/java/sample/SampleGlassfishDeployApplicationIT.java
+2
-2
SampleTomcatDeployApplicationIT.java
...src/test/java/sample/SampleTomcatDeployApplicationIT.java
+8
-8
SampleTomEEDeployApplicationIT.java
.../src/test/java/sample/SampleTomEEDeployApplicationIT.java
+2
-2
SampleWildFlyDeployApplicationIT.java
...rc/test/java/sample/SampleWildFlyDeployApplicationIT.java
+2
-2
SampleWlpDeployApplicationIT.java
...lp/src/test/java/sample/SampleWlpDeployApplicationIT.java
+2
-2
No files found.
spring-boot-tests/spring-boot-deployment-tests/spring-boot-deployment-test-glassfish/src/test/java/sample/SampleGlassfishDeployApplicationIT.java
View file @
35dc7982
...
...
@@ -32,7 +32,7 @@ public class SampleGlassfishDeployApplicationIT {
private
int
port
=
Integer
.
valueOf
(
System
.
getProperty
(
"port"
));
@Test
public
void
testHome
()
throws
Exception
{
void
testHome
()
throws
Exception
{
String
url
=
"http://localhost:"
+
this
.
port
+
"/bootapp/"
;
System
.
out
.
println
(
url
);
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
url
,
String
.
class
);
...
...
@@ -41,7 +41,7 @@ public class SampleGlassfishDeployApplicationIT {
}
@Test
public
void
testHealth
()
throws
Exception
{
void
testHealth
()
throws
Exception
{
String
url
=
"http://localhost:"
+
this
.
port
+
"/bootapp/actuator/health"
;
System
.
out
.
println
(
url
);
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
url
,
String
.
class
);
...
...
spring-boot-tests/spring-boot-deployment-tests/spring-boot-deployment-test-tomcat/src/test/java/sample/SampleTomcatDeployApplicationIT.java
View file @
35dc7982
...
...
@@ -38,7 +38,7 @@ public class SampleTomcatDeployApplicationIT {
private
int
port
=
Integer
.
valueOf
(
System
.
getProperty
(
"port"
));
@Test
public
void
testHome
()
throws
Exception
{
void
testHome
()
throws
Exception
{
String
url
=
"http://localhost:"
+
this
.
port
+
"/bootapp/"
;
ResponseEntity
<
String
>
entity
=
this
.
rest
.
getForEntity
(
url
,
String
.
class
);
assertThat
(
entity
.
getStatusCode
()).
isEqualTo
(
HttpStatus
.
OK
);
...
...
@@ -46,7 +46,7 @@ public class SampleTomcatDeployApplicationIT {
}
@Test
public
void
testHealth
()
throws
Exception
{
void
testHealth
()
throws
Exception
{
String
url
=
"http://localhost:"
+
this
.
port
+
"/bootapp/actuator/health"
;
System
.
out
.
println
(
url
);
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
url
,
String
.
class
);
...
...
@@ -55,34 +55,34 @@ public class SampleTomcatDeployApplicationIT {
}
@Test
public
void
errorFromExceptionForRequestAcceptingAnythingProducesAJsonResponse
()
throws
Exception
{
void
errorFromExceptionForRequestAcceptingAnythingProducesAJsonResponse
()
throws
Exception
{
assertThatPathProducesExpectedResponse
(
"/bootapp/exception"
,
MediaType
.
ALL
,
MediaType
.
APPLICATION_JSON
);
}
@Test
public
void
errorFromExceptionForRequestAcceptingJsonProducesAJsonResponse
()
throws
Exception
{
void
errorFromExceptionForRequestAcceptingJsonProducesAJsonResponse
()
throws
Exception
{
assertThatPathProducesExpectedResponse
(
"/bootapp/exception"
,
MediaType
.
APPLICATION_JSON
,
MediaType
.
APPLICATION_JSON
);
}
@Test
public
void
errorFromExceptionForRequestAcceptingHtmlProducesAnHtmlResponse
()
throws
Exception
{
void
errorFromExceptionForRequestAcceptingHtmlProducesAnHtmlResponse
()
throws
Exception
{
assertThatPathProducesExpectedResponse
(
"/bootapp/exception"
,
MediaType
.
TEXT_HTML
,
MediaType
.
TEXT_HTML
);
}
@Test
public
void
sendErrorForRequestAcceptingAnythingProducesAJsonResponse
()
throws
Exception
{
void
sendErrorForRequestAcceptingAnythingProducesAJsonResponse
()
throws
Exception
{
assertThatPathProducesExpectedResponse
(
"/bootapp/send-error"
,
MediaType
.
ALL
,
MediaType
.
APPLICATION_JSON
);
}
@Test
public
void
sendErrorForRequestAcceptingJsonProducesAJsonResponse
()
throws
Exception
{
void
sendErrorForRequestAcceptingJsonProducesAJsonResponse
()
throws
Exception
{
assertThatPathProducesExpectedResponse
(
"/bootapp/send-error"
,
MediaType
.
APPLICATION_JSON
,
MediaType
.
APPLICATION_JSON
);
}
@Test
public
void
sendErrorForRequestAcceptingHtmlProducesAnHtmlResponse
()
throws
Exception
{
void
sendErrorForRequestAcceptingHtmlProducesAnHtmlResponse
()
throws
Exception
{
assertThatPathProducesExpectedResponse
(
"/bootapp/send-error"
,
MediaType
.
TEXT_HTML
,
MediaType
.
TEXT_HTML
);
}
...
...
spring-boot-tests/spring-boot-deployment-tests/spring-boot-deployment-test-tomee/src/test/java/sample/SampleTomEEDeployApplicationIT.java
View file @
35dc7982
...
...
@@ -32,7 +32,7 @@ public class SampleTomEEDeployApplicationIT {
private
int
port
=
Integer
.
valueOf
(
System
.
getProperty
(
"port"
));
@Test
public
void
testHome
()
throws
Exception
{
void
testHome
()
throws
Exception
{
String
url
=
"http://localhost:"
+
this
.
port
+
"/bootapp/"
;
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
url
,
String
.
class
);
assertThat
(
entity
.
getStatusCode
()).
isEqualTo
(
HttpStatus
.
OK
);
...
...
@@ -40,7 +40,7 @@ public class SampleTomEEDeployApplicationIT {
}
@Test
public
void
testHealth
()
throws
Exception
{
void
testHealth
()
throws
Exception
{
String
url
=
"http://localhost:"
+
this
.
port
+
"/bootapp/actuator/health"
;
System
.
out
.
println
(
url
);
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
url
,
String
.
class
);
...
...
spring-boot-tests/spring-boot-deployment-tests/spring-boot-deployment-test-wildfly/src/test/java/sample/SampleWildFlyDeployApplicationIT.java
View file @
35dc7982
...
...
@@ -32,7 +32,7 @@ public class SampleWildFlyDeployApplicationIT {
private
int
port
=
Integer
.
valueOf
(
System
.
getProperty
(
"port"
));
@Test
public
void
testHome
()
throws
Exception
{
void
testHome
()
throws
Exception
{
String
url
=
"http://localhost:"
+
this
.
port
+
"/bootapp/"
;
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
url
,
String
.
class
);
assertThat
(
entity
.
getStatusCode
()).
isEqualTo
(
HttpStatus
.
OK
);
...
...
@@ -40,7 +40,7 @@ public class SampleWildFlyDeployApplicationIT {
}
@Test
public
void
testHealth
()
throws
Exception
{
void
testHealth
()
throws
Exception
{
String
url
=
"http://localhost:"
+
this
.
port
+
"/bootapp/actuator/health"
;
System
.
out
.
println
(
url
);
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
url
,
String
.
class
);
...
...
spring-boot-tests/spring-boot-deployment-tests/spring-boot-deployment-test-wlp/src/test/java/sample/SampleWlpDeployApplicationIT.java
View file @
35dc7982
...
...
@@ -32,7 +32,7 @@ public class SampleWlpDeployApplicationIT {
private
int
port
=
Integer
.
valueOf
(
System
.
getProperty
(
"port"
));
@Test
public
void
testHome
()
throws
Exception
{
void
testHome
()
throws
Exception
{
String
url
=
"http://localhost:"
+
this
.
port
+
"/bootapp/"
;
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
url
,
String
.
class
);
assertThat
(
entity
.
getStatusCode
()).
isEqualTo
(
HttpStatus
.
OK
);
...
...
@@ -40,7 +40,7 @@ public class SampleWlpDeployApplicationIT {
}
@Test
public
void
testHealth
()
throws
Exception
{
void
testHealth
()
throws
Exception
{
String
url
=
"http://localhost:"
+
this
.
port
+
"/bootapp/actuator/health"
;
System
.
out
.
println
(
url
);
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
url
,
String
.
class
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment