@BeforeClass public void setUp() throws Exception { test = new Assertion(); client = Client.builder().endpoints(TestConstants.endpoints).build(); kvClient = client.getKVClient(); leaseClient = client.getLeaseClient(); }
@BeforeTest public void setUp() throws Exception { test = new Assertion(); Client client = Client.builder().endpoints(TestConstants.endpoints).build(); lockClient = client.getLockClient(); leaseClient = client.getLeaseClient(); }
/** * Specify the type of assertion (Hard or Soft) for this test * @param assertionType * @return */ public Assert setAssertionType(AssertionType assertionType){ if(assertionType.equals(AssertionType.HARD)) { setAssertion((T) new Assertion()); } else { setAssertion((T) new SoftAssert()); } return this; }
@BeforeTest public void setUp() throws Exception { test = new Assertion(); Client client = Client.builder().endpoints(TestConstants.endpoints).build(); kvClient = client.getKVClient(); }
@Test public void testAssertion() { Assertion s = new Assertion(); s.assertEquals(2 * 2, 5); }