Lines Matching defs:not

5  * you may not use this file except in compliance with the License.
62 * allow code such as: {@code mockObject.doFoo(anyInt());}. If {@link #anyInt()} did not return
63 * {@code int} then the compiler would not accept the preceding code fragment.
65 * Similarly, the complex expectation methods ({@code #and}, {@code #or}, and {@code not}) take
73 * expectation APIs is not made clear by the method signatures of these expectation methods. In
74 * particular, it's not at all clear that {@link #and(byte, byte)} takes as parameters other
75 * expectation methods, and not just any random method that returns a {@literal byte} or even a
87 * mock will not allow for invocations of the mock object to occur other than in the exact order
109 * mock will not allow for invocations of the mock object to occur other than in the exact order
126 * @throws IllegalArgumentException if the name is not a valid Java identifier.
180 * @throws IllegalArgumentException if the name is not a valid Java identifier.
231 * @throws IllegalArgumentException if the name is not a valid Java identifier.
250 * {@link #or(boolean, boolean)}, and {@link #not(double)}.
1035 * are not limited to) {@link #anyBoolean()} and {@link #eq(boolean)}.
1059 * expectations. Possible expectations for {@code first} and {@code second} include (but are not
1084 * expectations. Possible expectations for {@code first} and {@code second} include (but are not
1109 * expectations. Possible expectations for {@code first} and {@code second} include (but are not
1134 * expectations. Possible expectations for {@code first} and {@code second} include (but are not
1159 * expectations. Possible expectations for {@code first} and {@code second} include (but are not
1184 * expectations. Possible expectations for {@code first} and {@code second} include (but are not
1209 * expectations. Possible expectations for {@code first} and {@code second} include (but are not
1234 * expectations. Possible expectations for {@code first} and {@code second} include (but are not
1261 * {@code second} include (but are not limited to) {@link #anyBoolean()} and {@link #eq(boolean)}.
1286 * {@code second} include (but are not limited to) {@link #anyByte()}, {@link #eq(byte)},
1312 * {@code second} include (but are not limited to) {@link #anyChar()} and {@link #eq(char)}.
1337 * {@code second} include (but are not limited to) {@link #anyDouble()}, {@link #eq(double)}
1363 * {@code second} include (but are not limited to) {@link #anyFloat()}, {@link #eq(float)}
1389 * {@code second} include (but are not limited to) {@link #anyInt()}, {@link #eq(int)}
1415 * {@code second} include (but are not limited to) {@link #anyLong()}, {@link #eq(long)}
1441 * {@code second} include (but are not limited to) {@link #anyShort()}, {@link #eq(short)}
1467 * {@code second} include (but are not limited to) {@link #anyObject()}, {@link #eq(Class)}
1490 * Expects a {@code boolean} parameter that does not match the provided expectation.
1491 * During replay mode, the mocked method will accept any {@code boolean} that does not match
1493 * include (but are not limited to) {@link #anyBoolean()} and {@link #eq(boolean)}.
1497 * AndroidMock.not(AndroidMock.eq(true)))).andReturn("hello");}
1501 * {@code expect(mock.getString(not(eq(true)))).andReturn("hello");}
1509 public static boolean not(boolean expectation) {
1510 return EasyMock.not(expectation);
1514 * Expects a {@code byte} parameter that does not match the provided expectation.
1515 * During replay mode, the mocked method will accept any {@code byte} that does not match
1517 * include (but are not limited to) {@link #anyByte()}, {@link #eq(byte)} and
1522 * AndroidMock.not(AndroidMock.eq((byte)42)))).andReturn("hello");}
1526 * {@code expect(mock.getString(not(eq((byte)42)))).andReturn("hello");}
1534 public static byte not(byte expectation) {
1535 return EasyMock.not(expectation);
1539 * Expects a {@code char} parameter that does not match the provided expectation.
1540 * During replay mode, the mocked method will accept any {@code char} that does not match
1542 * include (but are not limited to) {@link #anyChar()} and {@link #eq(char)}.
1546 * AndroidMock.not(AndroidMock.eq('a')))).andReturn("hello");}
1550 * {@code expect(mock.getString(not(eq('a')))).andReturn("hello");}
1558 public static char not(char expectation) {
1559 return EasyMock.not(expectation);
1563 * Expects a {@code double} parameter that does not match the provided expectation.
1564 * During replay mode, the mocked method will accept any {@code double} that does not match
1566 * include (but are not limited to) {@link #anyDouble()}, {@link #eq(double)} and
1571 * AndroidMock.not(AndroidMock.eq(42.0)))).andReturn("hello");}
1575 * {@code expect(mock.getString(not(eq(42.0)))).andReturn("hello");}
1583 public static double not(double expectation) {
1584 return EasyMock.not(expectation);
1588 * Expects a {@code float} parameter that does not match the provided expectation.
1589 * During replay mode, the mocked method will accept any {@code float} that does not match
1591 * include (but are not limited to) {@link #anyFloat()}, {@link #eq(float)} and
1596 * AndroidMock.not(AndroidMock.eq(42.0f)))).andReturn("hello");}
1600 * {@code expect(mock.getString(not(eq(42.0f)))).andReturn("hello");}
1608 public static float not(float expectation) {
1609 return EasyMock.not(expectation);
1613 * Expects a {@code int} parameter that does not match the provided expectation.
1614 * During replay mode, the mocked method will accept any {@code int} that does not match
1616 * include (but are not limited to) {@link #anyInt()}, {@link #eq(int)} and
1621 * AndroidMock.not(AndroidMock.eq(42)))).andReturn("hello");}
1625 * {@code expect(mock.getString(not(eq(42)))).andReturn("hello");}
1633 public static int not(int expectation) {
1634 return EasyMock.not(expectation);
1638 * Expects a {@code long} parameter that does not match the provided expectation.
1639 * During replay mode, the mocked method will accept any {@code long} that does not match
1641 * include (but are not limited to) {@link #anyLong()}, {@link #eq(long)} and
1646 * AndroidMock.not(AndroidMock.eq(42l)))).andReturn("hello");}
1650 * {@code expect(mock.getString(not(eq(42l)))).andReturn("hello");}
1658 public static long not(long expectation) {
1659 return EasyMock.not(expectation);
1663 * Expects a {@code short} parameter that does not match the provided expectation.
1664 * During replay mode, the mocked method will accept any {@code short} that does not match
1666 * include (but are not limited to) {@link #anyShort()}, {@link #eq(short)} and
1671 * AndroidMock.not(AndroidMock.eq((short)42)))).andReturn("hello");}
1675 * {@code expect(mock.getString(not(eq((short)42)))).andReturn("hello");}
1683 public static short not(short expectation) {
1684 return EasyMock.not(expectation);
1688 * Expects an {@code Object} parameter that does not match the given expectation.
1689 * During replay mode, the mocked method will accept any {@code Object} that does not match
1691 * include (but are not limited to) {@link #anyObject()}, {@link #leq(Comparable)} and
1696 * AndroidMock.not(AndroidMock.eq(fortyTwo)))).andReturn("hello");}
1700 * {@code expect(mock.getString(not(eq(fortyTwo)))).andReturn("hello");}
1708 public static <T> T not(T expectation) {
1709 return EasyMock.not(expectation);
2163 * match the given regular expression. This is not to be confused with {@link #find(String)} which
2541 * but some invocations did not occur. Typically, the {@code verify} method is the final thing
2618 * @param threadSafe If the mock should be thread safe or not.
2641 throw new RuntimeException("Could not find class for " + className
2642 + " which likely means that the mock-instrumented jar has not been created or else"
2643 + " is not being used in the current runtime environment. Try running MockGeneratorMain"
2684 "Internal Error - The class to test against is not a primitive");
2775 throw new IllegalArgumentException("Could not find the specified Constructor: "
2790 throw new RuntimeException("Could not find mock for " + clazz.getName()