Skip to content

Commit

Permalink
#360 - Create stress/load test which should cover all APIs with mocke…
Browse files Browse the repository at this point in the history
…d OP
  • Loading branch information
duttarnab committed Sep 11, 2019
1 parent f1a4890 commit 3224f9b
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.gluu.oxd.mock.service;


import org.apache.commons.lang.StringUtils;
import org.glassfish.jersey.message.internal.OutboundJaxrsResponse;
import org.glassfish.jersey.message.internal.OutboundMessageContext;
Expand All @@ -24,6 +25,8 @@
import org.jboss.resteasy.client.ClientExecutor;
import org.jboss.resteasy.client.ClientRequest;
import org.jboss.resteasy.client.ClientResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.ws.rs.core.Response;
import java.util.*;
Expand All @@ -34,6 +37,8 @@

public class OpClientFactoryMockImpl implements OpClientFactory {

private static final Logger LOG = LoggerFactory.getLogger(OpClientFactoryMockImpl.class);

@Override
public TokenClient createTokenClient(String url) {
TokenClient client = mock(TokenClient.class);
Expand Down Expand Up @@ -245,7 +250,7 @@ private static Map<Key, RsResource> getResourceMap(String rsProtect) {
}
}
} catch (Exception e) {
e.printStackTrace();
LOG.error("Failed to parse uma-rs-protect resource json .", e);
}
return rsResourceMap;
}
Expand All @@ -266,7 +271,7 @@ private static Map<Key, String> getIdMap(String rsProtect) {
}
}
} catch (Exception e) {
e.printStackTrace();
LOG.error("Failed to parse uma-rs-protect resource json .", e);
}
return rsIdMap;
}
Expand Down

0 comments on commit 3224f9b

Please sign in to comment.