Java 类org.testng.asserts.Assertion 实例源码

项目:jetcd    文件:LeaseTest.java   
@BeforeClass
public void setUp() throws Exception {
  test = new Assertion();
  client = Client.builder().endpoints(TestConstants.endpoints).build();
  kvClient = client.getKVClient();
  leaseClient = client.getLeaseClient();
}
项目:jetcd    文件:LockTest.java   
@BeforeTest
public void setUp() throws Exception {
  test = new Assertion();
  Client client = Client.builder().endpoints(TestConstants.endpoints).build();
  lockClient = client.getLockClient();
  leaseClient = client.getLeaseClient();
}
项目:seletest    文件:Assert.java   
/**
 * 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;
}
项目:jetcd    文件:KVTest.java   
@BeforeTest
public void setUp() throws Exception {
  test = new Assertion();
  Client client = Client.builder().endpoints(TestConstants.endpoints).build();
  kvClient = client.getKVClient();
}
项目:testng_samples    文件:AssertionsTest.java   
@Test
public void testAssertion() {
 Assertion s = new Assertion();
  s.assertEquals(2 * 2, 5);
}