Skip to content

Commit

Permalink
Update test for changed controller method
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Jan 10, 2024
1 parent ce6ca84 commit 1dc067f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/controllers/HomeControllerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ public static Collection<Object[]> data() {
// index
{ routes.HomeController.index().toString(), Status.OK }, //
// search
{ routes.HomeController.search("*", "", "", 0, 10, "json").toString(), Status.OK },
{ routes.HomeController.search("*", "", "", 0, 10, "jsonl").toString(), Status.OK },
{ routes.HomeController.search("*", "", "", 0, 10, "json:suggest").toString(), Status.OK },
{ routes.HomeController.search("++test", "", "", 0, 10, "html").toString(),
Status.INTERNAL_SERVER_ERROR },
{ routes.HomeController.search("*", "", "", 0, 10, "jsonfoo").toString(),
{ routes.HomeController.search("*", "", "", "", "", "", "", "", 0, 10, "json").toString(), Status.OK },
{ routes.HomeController.search("*", "", "", "", "", "", "", "", 0, 10, "jsonl").toString(), Status.OK },
{ routes.HomeController.search("*", "", "", "", "", "", "", "", 0, 10, "json:suggest").toString(), Status.OK },
{ routes.HomeController.search("++test", "", "", "", "", "", "", "", 0, 10, "html").toString(),
Status.INTERNAL_SERVER_ERROR },
{ routes.HomeController.search("*", "", "", "", "", "", "", "", 0, 10, "jsonfoo").toString(),
Status.UNSUPPORTED_MEDIA_TYPE },
{ routes.HomeController.search("*", "", "", 0, 10, "ttl").toString(), Status.UNSUPPORTED_MEDIA_TYPE },
{ routes.HomeController.search("*", "", "", 0, 10, "rdf").toString(), Status.UNSUPPORTED_MEDIA_TYPE },
{ routes.HomeController.search("*", "", "", 0, 10, "nt").toString(), Status.UNSUPPORTED_MEDIA_TYPE },
{ routes.HomeController.search("*", "", "", "", "", "", "", "", 0, 10, "ttl").toString(), Status.UNSUPPORTED_MEDIA_TYPE },
{ routes.HomeController.search("*", "", "", "", "", "", "", "", 0, 10, "rdf").toString(), Status.UNSUPPORTED_MEDIA_TYPE },
{ routes.HomeController.search("*", "", "", "", "", "", "", "", 0, 10, "nt").toString(), Status.UNSUPPORTED_MEDIA_TYPE },
// authority
{ routes.HomeController.authority("4791358-7", "json").toString(), Status.OK },
{ routes.HomeController.authority("abc", "json").toString(), Status.NOT_FOUND },
Expand Down

0 comments on commit 1dc067f

Please sign in to comment.