testLst.remove(something); if (testLst != null && !testLst.isEmpty()) { for (Test test : testLst) { if (test.getName().equalsIgnoreCase("TEST")) { // do blah }
protected void isTrue( boolean value) { if (!value) { throw new TestFailedException(SimpleTestResult.failed(this, "no message")); } }
public static TestResult successful( Test test, String message) { return new SimpleTestResult(true, test.getName() + ": " + message); }
public static TestResult failed( Test test, String message, Object expected, Object found) { return failed(test, message + SEPARATOR + "Expected: " + expected + SEPARATOR + "Found : " + found); }
public FixedSecureRandom( byte[][] values) { this(buildDataArray(values)); }
/** * Constructor based on a byte array. * * @param encoding a 2's complement representation of the BigInteger. */ public TestRandomBigInteger(byte[] encoding) { super(new FixedSecureRandom.Source[] { new FixedSecureRandom.BigInteger(encoding) }); }
protected void isEquals( long a, long b) { if (a != b) { throw new TestFailedException(SimpleTestResult.failed(this, "no message")); } }
public static TestResult failed( Test test, String message, Throwable t) { return new SimpleTestResult(false, test.getName() + ": " + message, t); }
if(testLst != null) { testLst.remove(something); if (!testLst.isEmpty()) { for (Test test : testLst) { if (test.getName().equalsIgnoreCase("TEST")) { // do blah }
public static TestResult failed( Test test, String message, Object expected, Object found) { return failed(test, message + SEPARATOR + "Expected: " + expected + SEPARATOR + "Found : " + found); }
protected void isEquals( String message, long a, long b) { if (a != b) { throw new TestFailedException(SimpleTestResult.failed(this, message)); } }
public static TestResult failed( Test test, String message, Throwable t) { return new SimpleTestResult(false, test.getName() + ": " + message, t); }
protected void isEquals( int a, int b) { if (a != b) { throw new TestFailedException(SimpleTestResult.failed(this, "no message")); } }
public static TestResult successful( Test test, String message) { return new SimpleTestResult(true, test.getName() + ": " + message); }
protected void fail( String message, Object expected, Object found) { throw new TestFailedException(SimpleTestResult.failed(this, message, expected, found)); }
protected void isTrue( String message, boolean value) { if (!value) { throw new TestFailedException(SimpleTestResult.failed(this, message)); } }
protected void fail( String message, Throwable throwable) { throw new TestFailedException(SimpleTestResult.failed(this, message, throwable)); }
protected void fail( String message, Object expected, Object found) { throw new TestFailedException(SimpleTestResult.failed(this, message, expected, found)); }
protected void fail( String message) { throw new TestFailedException(SimpleTestResult.failed(this, message)); }
protected void isEquals( String message, boolean a, boolean b) { if (a != b) { throw new TestFailedException(SimpleTestResult.failed(this, message)); } }