Search in sources :

Example 1 with ArticlesRestClient

use of au.com.dius.pact.consumer.junit.exampleclients.ArticlesRestClient in project pact-jvm by DiUS.

the class ArticlesTest method testArticles.

@PactVerification("ArticlesProvider")
@Test
public void testArticles() throws IOException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException {
    ArticlesRestClient providerRestClient = new ArticlesRestClient();
    providerRestClient.getArticles("http://localhost:1234");
}
Also used : ArticlesRestClient(au.com.dius.pact.consumer.junit.exampleclients.ArticlesRestClient) PactVerification(au.com.dius.pact.consumer.junit.PactVerification) Test(org.junit.Test)

Example 2 with ArticlesRestClient

use of au.com.dius.pact.consumer.junit.exampleclients.ArticlesRestClient in project pact-jvm by DiUS.

the class ArticlesHttpsTest method testArticles.

@PactVerification("ArticlesProvider")
@Test
public void testArticles() throws IOException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException {
    ArticlesRestClient providerRestClient = new ArticlesRestClient();
    providerRestClient.getArticles("https://localhost:1234");
}
Also used : ArticlesRestClient(au.com.dius.pact.consumer.junit.exampleclients.ArticlesRestClient) PactVerification(au.com.dius.pact.consumer.junit.PactVerification) Test(org.junit.Test)

Aggregations

PactVerification (au.com.dius.pact.consumer.junit.PactVerification)2 ArticlesRestClient (au.com.dius.pact.consumer.junit.exampleclients.ArticlesRestClient)2 Test (org.junit.Test)2