Changeset 6063 for DASISH/t5.6/backend/annotator-backend/tags/git-copy-censored/annotator-backend/src/test/java/eu/dasish/annotation/backend/rest/AnnotationResourceTest.java
- Timestamp:
- 02/25/15 21:20:50 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DASISH/t5.6/backend/annotator-backend/tags/git-copy-censored/annotator-backend/src/test/java/eu/dasish/annotation/backend/rest/AnnotationResourceTest.java
r5850 r6063 92 92 final Annotation expectedAnnotation = (new TestInstances("/api")).getAnnotationOne(); 93 93 annotationResource.setHttpServletRequest(mockRequest); 94 mockRequest.setRemoteUser(" olhsha@mpi.nl");94 mockRequest.setRemoteUser("alice@mail.domain"); 95 95 mockRequest.setContextPath("/backend"); 96 96 mockRequest.setServletPath("/api"); … … 100 100 oneOf(mockDbDispatcher).setResourcesPaths("/backend/api"); 101 101 102 oneOf(mockDbDispatcher).getPrincipalInternalIDFromRemoteID(" olhsha@mpi.nl");102 oneOf(mockDbDispatcher).getPrincipalInternalIDFromRemoteID("alice@mail.domain"); 103 103 will(returnValue(3)); 104 104 … … 134 134 135 135 annotationResource.setHttpServletRequest(mockRequest); 136 mockRequest.setRemoteUser(" olhsha@mpi.nl");136 mockRequest.setRemoteUser("alice@mail.domain"); 137 137 mockRequest.setContextPath("/backend"); 138 138 mockRequest.setServletPath("/api"); … … 142 142 oneOf(mockDbDispatcher).setResourcesPaths("/backend/api"); 143 143 144 oneOf(mockDbDispatcher).getPrincipalInternalIDFromRemoteID(" olhsha@mpi.nl");144 oneOf(mockDbDispatcher).getPrincipalInternalIDFromRemoteID("alice@mail.domain"); 145 145 will(returnValue(3)); 146 146 … … 192 192 193 193 annotationResource.setHttpServletRequest(mockRequest); 194 mockRequest.setRemoteUser(" olhsha@mpi.nl");194 mockRequest.setRemoteUser("alice@mail.domain"); 195 195 mockRequest.setContextPath("/backend"); 196 196 mockRequest.setServletPath("/api"); … … 200 200 oneOf(mockDbDispatcher).setResourcesPaths("/backend/api"); 201 201 202 oneOf(mockDbDispatcher).getPrincipalInternalIDFromRemoteID(" olhsha@mpi.nl");202 oneOf(mockDbDispatcher).getPrincipalInternalIDFromRemoteID("alice@mail.domain"); 203 203 will(returnValue(3)); 204 204
Note: See TracChangeset
for help on using the changeset viewer.