예제 #1
0
 /**
  * Expects a short that matches both given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>0</code>.
  */
 protected final short and(short first, short second) {
   return EasyMock.and(first, second);
 }
예제 #2
0
 /**
  * Expects an Object that matches both 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 and(T first, T second) {
   return EasyMock.and(first, second);
 }
예제 #3
0
 /**
  * Expects an int that matches both given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>0</code>.
  */
 protected final int and(int first, int second) {
   return EasyMock.and(first, second);
 }
예제 #4
0
 /**
  * Expects a long that matches both given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>0</code>.
  */
 protected final long and(long first, long second) {
   return EasyMock.and(first, second);
 }
예제 #5
0
 /**
  * Expects a float that matches both given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>0</code>.
  */
 protected final float and(float first, float second) {
   return EasyMock.and(first, second);
 }
예제 #6
0
 /**
  * Expects a double that matches both given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>0</code>.
  */
 protected final double and(double first, double second) {
   return EasyMock.and(first, second);
 }
예제 #7
0
 /**
  * Expects a char that matches both given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>0</code>.
  */
 protected final char and(char first, char second) {
   return EasyMock.and(first, second);
 }
예제 #8
0
 /**
  * Expects a byte that matches both given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>0</code>.
  */
 protected final byte and(byte first, byte second) {
   return EasyMock.and(first, second);
 }
예제 #9
0
 /**
  * Expects a boolean that matches both given expectations.
  *
  * @param first placeholder for the first expectation.
  * @param second placeholder for the second expectation.
  * @return <code>false</code>.
  */
 protected final boolean and(boolean first, boolean second) {
   return EasyMock.and(first, second);
 }