From e1c0623d3126734a4eca18709a3be388104cc6c8 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 3 Jan 2013 11:29:22 +0000 Subject: [PATCH] snippet for get rest user service git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1428292 13f79535-47bb-0310-9956-ffa450edef68 --- .../redback/rest/services/AbstractRestServicesTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/redback-integrations/redback-rest/redback-rest-services/src/test/java/org/apache/archiva/redback/rest/services/AbstractRestServicesTest.java b/redback-integrations/redback-rest/redback-rest-services/src/test/java/org/apache/archiva/redback/rest/services/AbstractRestServicesTest.java index 05d0c0a5..1f7abe73 100644 --- a/redback-integrations/redback-rest/redback-rest-services/src/test/java/org/apache/archiva/redback/rest/services/AbstractRestServicesTest.java +++ b/redback-integrations/redback-rest/redback-rest-services/src/test/java/org/apache/archiva/redback/rest/services/AbstractRestServicesTest.java @@ -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 ) {