daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Oct 16th, 2018 69 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. import static org.testng.Assert.*;
  2.  
  3. public class AssertResult
  4. {
  5.     static public void assertSucceeded(Result result)
  6.     {
  7.         assertTrue(result.succeeded(), result.getMessage());
  8.     }
  9.  
  10.     static public void assertFailed(Result result)
  11.     {
  12.         assertFalse(result.succeeded());
  13.     }
  14.  
  15.     static public void assertSucceeded(Result result, String message)
  16.     {
  17.         assertTrue(result.succeeded(), message);
  18.     }
  19.  
  20.     static public void assertFailed(Result result, String message)
  21.     {
  22.         assertFalse(result.succeeded(), message);
  23.     }
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top