From cc62b154b8f9bb1f9b8a3afffe4417198e11d638 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 12 Apr 2022 11:56:01 +0200 Subject: [PATCH] language/java: fix code-hint to use the correct language This block now shows java code, so changing the code-hint to make sure it's highlighted correctly. Signed-off-by: Sebastiaan van Stijn --- language/java/run-tests.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/language/java/run-tests.md b/language/java/run-tests.md index 6cfde2083f..5faf741ac5 100644 --- a/language/java/run-tests.md +++ b/language/java/run-tests.md @@ -151,14 +151,14 @@ The build output is truncated for simplicity, but you can see that our tests ran Open the `src/test/java/org/springframework/samples/petclinic/model/ValidatorTests.java` file and change the assertion -```shell - assertThat(violation.getMessage()).isEqualTo("must not be empty"); +```java +assertThat(violation.getMessage()).isEqualTo("must not be empty"); ``` with the following. -```shell - assertThat(violation.getMessage()).isEqualTo("must be empty"); +```java +assertThat(violation.getMessage()).isEqualTo("must be empty"); ``` Now, run the `docker build` command from above and observe that the build fails and the failing testing information is printed to the console.