Using Play! 1.5.0, I followed these steps:
- Executed
play new example
- Executed
cd example
- In method
testThatIndexPageWorks
of classexample/test/ApplicationTest.java
, replaced
Response response = GET("/");
assertIsOk(response);
with
Response response = GET("/notfound");
assertIsNotFound(response);
- Executed
play test
- Opened a browser at http://localhost:9000/@tests?select=ApplicationTest.class
- Pressed the “Start !” button
The test fails with Failure, Response status expected:<404> but was:<200>
.
Has there been any change regarding how not found resources are handled?