Code example for BigDecimal

0
 */ 
public class BigDecimals_assertIsNotNegative_Test extends BigDecimalsBaseTest { 
 
  @Test 
  public void should_succeed_since_actual_is_not_negative() { 
    bigDecimals.assertIsNotNegative(someInfo(), new BigDecimal(6)); 
  } 
 
  @Test 
  public void should_succeed_since_actual_is_zero() { 
    bigDecimals.assertIsNotNegative(someInfo(), BigDecimal.ZERO); 
  } 
 
  @Test 
  public void should_fail_since_actual_is_negative() { 
    thrown.expectAssertionError("\nExpecting:\n <-6>\nto be greater than or equal to:\n <0>"); 
    bigDecimals.assertIsNotNegative(someInfo(), new BigDecimal(-6)); 
  } 
 
  @Test 
  public void should_succeed_since_actual_is_not_negative_according_to_custom_comparison_strategy() {