Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }