Ejemplo n.º 1
0
 /**
  * Expects a short that matches one of the given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>0</code>.
  */
 protected final short or(short first, short second) {
   return EasyMock.or(first, second);
 }
Ejemplo n.º 2
0
 /**
  * Expects an Object that matches one of the given expectations.
  *
  * @param <T> the type of the object, it is passed through to prevent casts.
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>null</code>.
  */
 protected final <T> T or(T first, T second) {
   return EasyMock.or(first, second);
 }
Ejemplo n.º 3
0
 /**
  * Expects an int that matches one of the given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>0</code>.
  */
 protected final int or(int first, int second) {
   return EasyMock.or(first, second);
 }
Ejemplo n.º 4
0
 /**
  * Expects a long that matches one of the given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>0</code>.
  */
 protected final long or(long first, long second) {
   return EasyMock.or(first, second);
 }
Ejemplo n.º 5
0
 /**
  * Expects a float that matches one of the given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>0</code>.
  */
 protected final float or(float first, float second) {
   return EasyMock.or(first, second);
 }
Ejemplo n.º 6
0
 /**
  * Expects a double that matches one of the given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>0</code>.
  */
 protected final double or(double first, double second) {
   return EasyMock.or(first, second);
 }
Ejemplo n.º 7
0
 /**
  * Expects a char that matches one of the given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>0</code>.
  */
 protected final char or(char first, char second) {
   return EasyMock.or(first, second);
 }
Ejemplo n.º 8
0
 /**
  * Expects a byte that matches one of the given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>0</code>.
  */
 protected final byte or(byte first, byte second) {
   return EasyMock.or(first, second);
 }
Ejemplo n.º 9
0
 /**
  * Expects a boolean that matches one of the given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>false</code>.
  */
 protected final boolean or(boolean first, boolean second) {
   return EasyMock.or(first, second);
 }