Search in sources :

Example 6 with MockServer

use of com.auth0.client.MockServer in project auth0-java by auth0.

the class CreateUserRequestTest method setUp.

@Before
public void setUp() throws Exception {
    client = new OkHttpClient();
    server = new MockServer();
}
Also used : OkHttpClient(okhttp3.OkHttpClient) MockServer(com.auth0.client.MockServer) Before(org.junit.Before)

Example 7 with MockServer

use of com.auth0.client.MockServer in project auth0-java by auth0.

the class CustomRequestTest method setUp.

@Before
public void setUp() throws Exception {
    server = new MockServer();
    client = new OkHttpClient();
    tokenHolderType = new TypeReference<TokenHolder>() {
    };
    listType = new TypeReference<List>() {
    };
    voidType = new TypeReference<Void>() {
    };
}
Also used : OkHttpClient(okhttp3.OkHttpClient) MockServer(com.auth0.client.MockServer) TokenHolder(com.auth0.json.auth.TokenHolder) List(java.util.List)

Example 8 with MockServer

use of com.auth0.client.MockServer in project auth0-java by auth0.

the class AuthAPITest method setUp.

@Before
public void setUp() throws Exception {
    server = new MockServer();
    api = new AuthAPI(server.getBaseUrl(), CLIENT_ID, CLIENT_SECRET);
}
Also used : MockServer(com.auth0.client.MockServer) Before(org.junit.Before)

Example 9 with MockServer

use of com.auth0.client.MockServer in project auth0-java by auth0.

the class BaseMgmtEntityTest method setUp.

@Before
public void setUp() throws Exception {
    server = new MockServer();
    api = new ManagementAPI(server.getBaseUrl(), API_TOKEN);
}
Also used : MockServer(com.auth0.client.MockServer) Before(org.junit.Before)

Aggregations

MockServer (com.auth0.client.MockServer)9 Before (org.junit.Before)7 OkHttpClient (okhttp3.OkHttpClient)6 TokenHolder (com.auth0.json.auth.TokenHolder)3 List (java.util.List)2