Search in sources :

Example 1 with Assertion

use of org.testng.asserts.Assertion in project jetcd by coreos.

the class KVTest method setUp.

@BeforeTest
public void setUp() throws Exception {
    test = new Assertion();
    Client client = ClientBuilder.newBuilder().endpoints("http://localhost:2379").build();
    kvClient = client.getKVClient();
}
Also used : Assertion(org.testng.asserts.Assertion) BeforeTest(org.testng.annotations.BeforeTest)

Example 2 with Assertion

use of org.testng.asserts.Assertion in project jetcd by coreos.

the class AuthClientTest method setupEnv.

/**
   * Build etcd client to create role, permission
   */
@BeforeTest
public void setupEnv() throws AuthFailedException, ConnectException {
    this.test = new Assertion();
    this.client = ClientBuilder.newBuilder().endpoints("localhost:2379").build();
    this.kvClient = this.client.getKVClient();
    this.authClient = this.client.getAuthClient();
}
Also used : Assertion(org.testng.asserts.Assertion) BeforeTest(org.testng.annotations.BeforeTest)

Example 3 with Assertion

use of org.testng.asserts.Assertion in project jetcd by coreos.

the class LeaseTest method setUp.

@BeforeTest
public void setUp() throws Exception {
    test = new Assertion();
    client = ClientBuilder.newBuilder().endpoints(TestConstants.endpoints).build();
    kvClient = client.getKVClient();
    leaseClient = client.getLeaseClient();
}
Also used : Assertion(org.testng.asserts.Assertion) BeforeTest(org.testng.annotations.BeforeTest)

Aggregations

BeforeTest (org.testng.annotations.BeforeTest)3 Assertion (org.testng.asserts.Assertion)3