You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/features/ApplicationEnvironment.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ The envionment is called "hollow" because everything _except_ your application w
51
51
.withNetworkAliases("testmongo");
52
52
```
53
53
54
-
With the default `TestcontainersConfiguration`, both the `app` and `mongo` containers would be started each time tests are run. With "hollow" mode, only the `mongo` container would be started each time the tests run, and instead of staring the `app` container the already-running application runtime will be used.
54
+
With the default `TestcontainersConfiguration`, both the `app` and `mongo` containers would be started each time tests are run. With "hollow" mode, only the `mongo` container would be started each time the tests run, and instead of starting the `app` container the already-running application runtime will be used.
55
55
56
56
This environment is also provided by the `microshed-testing-testcontainers` module. To enable this environment, the following system properties or env vars must be set:
57
57
***microshed_hostname**: Indicates the hostname or IP address where the application is running. For example, `localhost` or `216.3.128.12`.
Copy file name to clipboardExpand all lines: docs/features/Examples.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Sometimes code is worth a thousand words. Here are some pointers to working exam
10
10
11
11
-[Basic JAX-RS application using Gradle](https://github.com/MicroShed/microshed-testing/tree/master/sample-apps/jaxrs-json)
12
12
-[Basic JAX-RS application using Maven](https://github.com/MicroShed/microshed-testing/tree/master/sample-apps/maven-app)
13
-
-[Basic JAX-RS application using REST Assured](https://github.com/MicroShed/microshed-testing/blob/master/sample-apps/everything-app/src/test/java/org/example/app/RestAssuredTest.java)
13
+
-[Basic JAX-RS application using REST Assured](https://github.com/MicroShed/microshed-testing/blob/master/sample-apps/everything-app/src/test/java/org/example/app/RestAssuredIT.java)
14
14
-[JAX-RS and JDBC application using a PostgreSQL database](https://github.com/MicroShed/microshed-testing/tree/master/sample-apps/jdbc-app)
15
15
-[JAX-RS application secured with Basic Auth](https://github.com/MicroShed/microshed-testing/tree/master/sample-apps/jaxrs-basicauth)
16
16
-[JAX-RS application secured with MP JWT](https://github.com/MicroShed/microshed-testing/tree/master/sample-apps/jaxrs-mpjwt)
@@ -23,4 +23,4 @@ Sometimes code is worth a thousand words. Here are some pointers to working exam
23
23
-[Testing an application with OpenLiberty](https://github.com/MicroShed/microshed-testing/tree/master/sample-apps/liberty-app)
24
24
-[Testing an application with Payara Micro](https://github.com/MicroShed/microshed-testing/tree/master/sample-apps/payara-app)
25
25
-[Testing an application with Wildfly](https://github.com/MicroShed/microshed-testing/tree/master/sample-apps/wildfly-app)
26
-
-[Testing an application with Quarkus](https://github.com/MicroShed/microshed-testing/tree/master/sample-apps/quarkus-app)
26
+
-[Testing an application with Quarkus](https://github.com/MicroShed/microshed-testing/tree/master/sample-apps/quarkus-app)
Copy file name to clipboardExpand all lines: docs/features/MP_JWT.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ public class SecuredService {
34
34
}
35
35
```
36
36
37
-
As the `@RolesAllowed` annotations imply, anyone can access the `GET /data/ping` endpoint, but only client authenticated in the `users` role can access the `GET /data/users` endpoint.
37
+
As the `@RolesAllowed` annotations imply, anyone can access the `GET /data/ping` endpoint, but only clients authenticated in the `users` role can access the `GET /data/users` endpoint.
Copy file name to clipboardExpand all lines: docs/features/RestAssured.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: "REST Assured"
4
4
order: 14
5
5
---
6
6
7
-
MicroShed Testing provides auto-configuration for when [REST Assured](https://github.com/rest-assured/rest-assured) is available on the test classpath. REST Assured is a Java DSL library for easy testing of REST services. It is more verbose than using a REST client, but offers more direct control over the request and response.f
7
+
MicroShed Testing provides auto-configuration for when [REST Assured](https://github.com/rest-assured/rest-assured) is available on the test classpath. REST Assured is a Java DSL library for easy testing of REST services. It is more verbose than using a REST client, but offers more direct control over the request and response.
8
8
9
9
## Enable REST Assured
10
10
@@ -90,7 +90,7 @@ It is also possible to send/receive POJOs with the JSON-B based ObjectMapper:
90
90
}
91
91
```
92
92
93
-
For a complete working example, see the [RestAssuredTest class](https://github.com/MicroShed/microshed-testing/blob/master/sample-apps/everything-app/src/test/java/org/example/app/RestAssuredTest.java)
93
+
For a complete working example, see the [RestAssuredTest class](https://github.com/MicroShed/microshed-testing/blob/master/sample-apps/everything-app/src/test/java/org/example/app/RestAssuredIT.java)
Copy file name to clipboardExpand all lines: docs/features/Walkthrough.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ order: 00
6
6
7
7
Have you ever toiled with creating mock objects for unit tests? How about custom setup steps for integration tests? Ever had an issue in production because of differences in behavior between testing and production environments?
8
8
9
-
One of the great benefits of Docker is that we get a nice consistent package that contains everything down to the OS, meaning it’s portable to any hardware. Great, so lets use this to get consistent testing environments too!
9
+
One of the great benefits of Docker is that we get a nice consistent package that contains everything down to the OS, meaning it's portable to any hardware. Great, so let's use this to get consistent testing environments too!
10
10
11
11
# Starting application
12
12
@@ -167,7 +167,7 @@ A few questions may come up at this point, such as:
featureofcontainersbyautomaticallyrandomizingtheportssotheydonotconflict. Inthiscase, port `9080` insideofthecontainerwasrandomlyexposedas `33735`, whichcanbeobtainedbycalling `app.getFirstExposedPort()` or `app.getMappedPort(9080)`.
170
+
featureofcontainersbyautomaticallyrandomizingtheportssotheydonotconflict. Inthiscase, port `9080` insideofthecontainerwasrandomlyexposedas `33735`, whichcanbeobtainedbycalling `app.getFirstExposedPort()` or `app.getMappedPort(9080)`.
171
171
172
172
### Why wasn't the URL accessible?
173
173
@@ -181,7 +181,7 @@ However, our application does not respond at this endpoint, so we need to config
181
181
.withReadinessPath("/myservice/people");
182
182
```
183
183
184
-
Alternatively, if your application runtime supports MicroProfileHealth2.0, it will have a standard readiness endpoint at `/heath/ready`, which will return `HTTP200` when the application is available.
184
+
Alternatively, if your application runtime supports MicroProfileHealth2.0, it will have a standard readiness endpoint at `/health/ready`, which will return `HTTP200` when the application is available.
0 commit comments