TOMEE-2357 a test in mp-rest-jwt example updated to validate this ticket fix


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/4c186420
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/4c186420
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/4c186420

Branch: refs/heads/master
Commit: 4c186420b2148854974e3c79ce563918e17b2454
Parents: d9563f8
Author: CesarHernandezGt <[email protected]>
Authored: Thu Dec 13 20:54:25 2018 -0600
Committer: CesarHernandezGt <[email protected]>
Committed: Thu Dec 13 20:54:25 2018 -0600

----------------------------------------------------------------------
 .../src/test/java/org/superbiz/moviefun/MoviesTest.java         | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/4c186420/examples/mp-rest-jwt/src/test/java/org/superbiz/moviefun/MoviesTest.java
----------------------------------------------------------------------
diff --git 
a/examples/mp-rest-jwt/src/test/java/org/superbiz/moviefun/MoviesTest.java 
b/examples/mp-rest-jwt/src/test/java/org/superbiz/moviefun/MoviesTest.java
index 98af3bc..731a194 100644
--- a/examples/mp-rest-jwt/src/test/java/org/superbiz/moviefun/MoviesTest.java
+++ b/examples/mp-rest-jwt/src/test/java/org/superbiz/moviefun/MoviesTest.java
@@ -87,13 +87,12 @@ public class MoviesTest {
         assertTrue(response.getStatus() == 204);
 
 
-        //GET movies (Using token1.json with group of claims: [read-only])
-        //This test should be updated to use token2.json once TOMEE-2357 gets 
resolved.
+        //GET movies (Using token2.json with group of claims: [read-only])
         Collection<? extends Movie> movies = webClient
                 .reset()
                 .path("/rest/cinema/movies")
                 .header("Content-Type", "application/json")
-                .header("Authorization", "Bearer " + token(1))
+                .header("Authorization", "Bearer " + token(2))
                 .getCollection(Movie.class);
         LOGGER.info(movies.toString());
         assertTrue(movies.size() == 1);

Reply via email to