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: README.md
+12-12
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ step of the workshop just check out the branch for that step (i.e. `git checkout
7
7
8
8
## Requirements
9
9
10
-
* JDK 8+
10
+
* JDK 17+
11
11
* Docker for step 11
12
12
13
13
## Workshop outline:
@@ -317,14 +317,14 @@ This test starts a mock server on a random port that acts as our provider servic
317
317
To run only the Pact tests:
318
318
319
319
```console
320
-
> ./gradlew consumer:test --tests *PactTest
320
+
> ./gradlew consumer:test --tests '*PactTest'
321
321
322
322
```
323
323
324
324
Running this test still passes, but it creates a pact file which we can use to validate our assumptions on the provider side, and have conversation around.
325
325
326
326
```console
327
-
❯ ./gradlew consumer:test --tests *PactTest
327
+
❯ ./gradlew consumer:test --tests '*PactTest'
328
328
329
329
BUILD SUCCESSFUL in 6s
330
330
```
@@ -386,13 +386,13 @@ public class ProductPactProviderTest {
386
386
To run only the verification tests:
387
387
388
388
```console
389
-
> ./gradlew provider:test --tests *Pact*Test
389
+
> ./gradlew provider:test --tests '*Pact*Test'
390
390
```
391
391
392
392
We now need to validate the pact generated by the consumer is valid, by executing it against the running service provider, which should fail:
393
393
394
394
```console
395
-
❯ ./gradlew provider:test --tests *Pact*Test
395
+
❯ ./gradlew provider:test --tests '*Pact*Test'
396
396
397
397
...
398
398
...
@@ -476,7 +476,7 @@ Copy the updated contract located in `consumer/build/pacts/FrontendApplication-P
476
476
Run the command:
477
477
478
478
```console
479
-
❯ ./gradlew provider:test --tests *Pact*Test
479
+
❯ ./gradlew provider:test --tests '*Pact*Test'
480
480
481
481
...
482
482
...
@@ -545,14 +545,14 @@ In `consumer/src/test/java/au/com/dius/pactworkshop/consumer/ProductConsumerPact
545
545
546
546
HttpClientErrorException e = assertThrows(HttpClientErrorException.class,
Notice that our new tests look almost identical to our previous tests, and only differ on the expectations of the _response_ - the HTTP request expectations are exactly the same.
553
553
554
554
```console
555
-
❯ ./gradlew consumer:test --tests *PactTest
555
+
❯ ./gradlew consumer:test --tests '*PactTest'
556
556
557
557
BUILD SUCCESSFUL in 1s
558
558
```
@@ -568,7 +568,7 @@ What does our provider have to say about this new test. Again, copy the updated
568
568
and run the command:
569
569
570
570
```console
571
-
❯ ./gradlew provider:test --tests *Pact*Test
571
+
❯ ./gradlew provider:test --tests '*Pact*Test'
572
572
573
573
...
574
574
...
@@ -818,7 +818,7 @@ public class ProductConsumerPactTest {
818
818
819
819
HttpClientErrorException e = assertThrows(HttpClientErrorException.class,
0 commit comments