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 <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-04-12 11:56:01 +02:00
parent 461c6935c4
commit cc62b154b8
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 4 additions and 4 deletions

View File

@ -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.