Search in sources :

Example 1 with MockServer

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

the class ManagementAPITest 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)

Example 2 with MockServer

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

the class EmptyBodyRequestTest method setUp.

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

Example 3 with MockServer

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

the class MultipartRequestTest 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 4 with MockServer

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

the class TokenRequestTest 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 5 with MockServer

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

the class VoidRequestTest 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)

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