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
c38f9bcd
Commit
c38f9bcd
authored
May 08, 2014
by
Christian Dupuis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing tests
parent
dfd6f91a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
SampleActuatorUiApplicationPortTests.java
...ple/actuator/ui/SampleActuatorUiApplicationPortTests.java
+1
-1
EndpointsPropertiesSampleActuatorApplicationTests.java
...or/EndpointsPropertiesSampleActuatorApplicationTests.java
+1
-1
ManagementAddressActuatorApplicationTests.java
...e/actuator/ManagementAddressActuatorApplicationTests.java
+1
-1
ManagementPortSampleActuatorApplicationTests.java
...ctuator/ManagementPortSampleActuatorApplicationTests.java
+1
-1
SampleActuatorApplicationTests.java
.../java/sample/actuator/SampleActuatorApplicationTests.java
+1
-1
No files found.
spring-boot-samples/spring-boot-sample-actuator-ui/src/test/java/sample/actuator/ui/SampleActuatorUiApplicationPortTests.java
View file @
c38f9bcd
...
@@ -75,7 +75,7 @@ public class SampleActuatorUiApplicationPortTests {
...
@@ -75,7 +75,7 @@ public class SampleActuatorUiApplicationPortTests {
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
"http://localhost:"
+
this
.
managementPort
+
"/health"
,
String
.
class
);
"http://localhost:"
+
this
.
managementPort
+
"/health"
,
String
.
class
);
assertEquals
(
HttpStatus
.
OK
,
entity
.
getStatusCode
());
assertEquals
(
HttpStatus
.
OK
,
entity
.
getStatusCode
());
assertEquals
(
"
ok
"
,
entity
.
getBody
());
assertEquals
(
"
{\"status\":\"ok\"}
"
,
entity
.
getBody
());
}
}
}
}
spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/EndpointsPropertiesSampleActuatorApplicationTests.java
View file @
c38f9bcd
...
@@ -67,6 +67,6 @@ public class EndpointsPropertiesSampleActuatorApplicationTests {
...
@@ -67,6 +67,6 @@ public class EndpointsPropertiesSampleActuatorApplicationTests {
"http://localhost:"
+
this
.
port
+
"/admin/health"
,
String
.
class
);
"http://localhost:"
+
this
.
port
+
"/admin/health"
,
String
.
class
);
assertEquals
(
HttpStatus
.
OK
,
entity
.
getStatusCode
());
assertEquals
(
HttpStatus
.
OK
,
entity
.
getStatusCode
());
String
body
=
entity
.
getBody
();
String
body
=
entity
.
getBody
();
assertEquals
(
"
ok
"
,
body
);
assertEquals
(
"
{\"status\":\"ok\"}
"
,
body
);
}
}
}
}
spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/ManagementAddressActuatorApplicationTests.java
View file @
c38f9bcd
...
@@ -71,7 +71,7 @@ public class ManagementAddressActuatorApplicationTests {
...
@@ -71,7 +71,7 @@ public class ManagementAddressActuatorApplicationTests {
"http://localhost:"
+
this
.
managementPort
+
"/admin/health"
,
"http://localhost:"
+
this
.
managementPort
+
"/admin/health"
,
String
.
class
);
String
.
class
);
assertEquals
(
HttpStatus
.
OK
,
entity
.
getStatusCode
());
assertEquals
(
HttpStatus
.
OK
,
entity
.
getStatusCode
());
assertEquals
(
"
ok
"
,
entity
.
getBody
());
assertEquals
(
"
{\"status\":\"ok\"}
"
,
entity
.
getBody
());
}
}
}
}
spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/ManagementPortSampleActuatorApplicationTests.java
View file @
c38f9bcd
...
@@ -80,7 +80,7 @@ public class ManagementPortSampleActuatorApplicationTests {
...
@@ -80,7 +80,7 @@ public class ManagementPortSampleActuatorApplicationTests {
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
"http://localhost:"
+
this
.
managementPort
+
"/health"
,
String
.
class
);
"http://localhost:"
+
this
.
managementPort
+
"/health"
,
String
.
class
);
assertEquals
(
HttpStatus
.
OK
,
entity
.
getStatusCode
());
assertEquals
(
HttpStatus
.
OK
,
entity
.
getStatusCode
());
assertEquals
(
"
ok
"
,
entity
.
getBody
());
assertEquals
(
"
{\"status\":\"ok\"}
"
,
entity
.
getBody
());
}
}
@Test
@Test
...
...
spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/SampleActuatorApplicationTests.java
View file @
c38f9bcd
...
@@ -130,7 +130,7 @@ public class SampleActuatorApplicationTests {
...
@@ -130,7 +130,7 @@ public class SampleActuatorApplicationTests {
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
"http://localhost:"
+
this
.
port
+
"/health"
,
String
.
class
);
"http://localhost:"
+
this
.
port
+
"/health"
,
String
.
class
);
assertEquals
(
HttpStatus
.
OK
,
entity
.
getStatusCode
());
assertEquals
(
HttpStatus
.
OK
,
entity
.
getStatusCode
());
assertEquals
(
"
ok
"
,
entity
.
getBody
());
assertEquals
(
"
{\"status\":\"ok\"}
"
,
entity
.
getBody
());
}
}
@Test
@Test
...
...
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