]> source.dussan.org Git - archiva.git/commitdiff
snippet for get rest user service
authorOlivier Lamy <olamy@apache.org>
Thu, 3 Jan 2013 11:29:22 +0000 (11:29 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 3 Jan 2013 11:29:22 +0000 (11:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1428292 13f79535-47bb-0310-9956-ffa450edef68

redback-integrations/redback-rest/redback-rest-services/src/test/java/org/apache/archiva/redback/rest/services/AbstractRestServicesTest.java

index 05d0c0a5c04feafad454193850d1ec539530810d..1f7abe73ceb32e56c57e311a4c1d20a633434b68 100644 (file)
@@ -149,14 +149,14 @@ public abstract class AbstractRestServicesTest
     {
         return getUserService( null );
     }
-
+    // START SNIPPET: get-user-service
     protected UserService getUserService( String authzHeader )
     {
         UserService service =
             JAXRSClientFactory.create( "http://localhost:" + port + "/" + getRestServicesPath() + "/redbackServices/",
                                        UserService.class, Collections.singletonList( new JacksonJaxbJsonProvider() ) );
 
-        // for debuging purpose
+        // time out for debuging purpose
         WebClient.getConfig( service ).getHttpConduit().getClient().setReceiveTimeout( 100000 );
 
         if ( authzHeader != null )
@@ -168,6 +168,7 @@ public abstract class AbstractRestServicesTest
 
         return service;
     }
+    // END SNIPPET: get-user-service
 
     protected RoleManagementService getRoleManagementService( String authzHeader )
     {