Merge pull request #8553 from Maiklins/BAEL-20595-fix-unit-test-in-akka-http-module

BAEL-20595 fix unit test in akka http module
This commit is contained in:
Loredana Crusoveanu 2020-01-26 18:33:46 +02:00 committed by GitHub
commit ee24225ab0
1 changed files with 2 additions and 2 deletions

View File

@ -31,10 +31,10 @@ public class UserServerUnitTest extends JUnitRouteTest {
.assertStatusCode(404);
appRoute.run(HttpRequest.DELETE("/users/1"))
.assertStatusCode(200);
.assertStatusCode(405);
appRoute.run(HttpRequest.DELETE("/users/42"))
.assertStatusCode(200);
.assertStatusCode(405);
appRoute.run(HttpRequest.POST("/users")
.withEntity(HttpEntities.create(ContentTypes.APPLICATION_JSON, zaphod())))