Skip to content

Commit 462fc24

Browse files
committed
docs: fix exercise instructions
1 parent a093916 commit 462fc24

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

README.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,6 @@ In your terminal, ensure that you are in the root directory of this repo, then r
134134
./mvnw clean test -pl exception-handling
135135
```
136136

137-
Or to run only the ExceptionExercises tests:
138-
139-
```shell
140-
./mvnw clean test -pl exception-handling -Dtest=ExceptionExercisesTest
141-
```
142-
143137
## :pushpin: Custom Exceptions
144138

145139
Create a custom (checked) exception class called `FilenameException` in the `custom-exceptions/src/main/java/com/cbfacademy` directory.
@@ -179,7 +173,7 @@ In your terminal, ensure that you are in the root directory of this repo, then r
179173
./mvnw clean test -pl custom-exceptions
180174
```
181175

182-
Or to run only the FileExtension tests:
176+
Or to only run a specific test, use the `-Dtest=[test name]` flag, e.g.:
183177

184178
```shell
185179
./mvnw clean test -pl custom-exceptions -Dtest=FileExtensionTest
@@ -193,13 +187,6 @@ If you want to experiment with the provided application in the App.java file, yo
193187
```shell
194188
./mvnw -q clean compile exec:java
195189
```
196-
```
197-
198-
Or on Windows:
199-
200-
```bat
201-
mvnw -q clean compile exec:java
202-
```
203190

204191
[1]: https://docs.oracle.com/javase/21/docs/api/index.html
205192
[2]: https://junit.org/junit5/

0 commit comments

Comments
 (0)