org.amicofragile.testing
Class MyAssertor

java.lang.Object
  extended by org.amicofragile.testing.MyAssertor

public class MyAssertor
extends Object

Library-class for custom JUnit assertions.

Author:
Pietro Martinelli

Constructor Summary
MyAssertor()
           
 
Method Summary
 void assertBetween(long min, long max, long current)
          Asserts current value belongs to a specified interval.
 void assertBetween(String failureMessage, long min, long max, long current)
          Asserts current value belongs to a specified interval.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyAssertor

public MyAssertor()
Method Detail

assertBetween

public final void assertBetween(long min,
                                long max,
                                long current)
Asserts current value belongs to a specified interval.

Parameters:
min - Interval's minimum value.
max - Interval's maximum value.
current - Current value.
See Also:
assertBetween(String, long, long, long)

assertBetween

public final void assertBetween(String failureMessage,
                                long min,
                                long max,
                                long current)
Asserts current value belongs to a specified interval.

Parameters:
failureMessage - Base failure message.
min - Interval's minimum value.
max - Interval's maximum value.
current - Current value.


Copyright © 2010. All Rights Reserved.