Package org.easymock.internal

Examples of org.easymock.internal.Range


        control.andStubDelegateTo(null);
    }

    @Test(expected = RuntimeExceptionWrapper.class)
    public void times() {
        control.times(new Range(0, 1));
    }
View Full Code Here


   *                called on the mock object before, or if the last method
   *                called on the mock was no void method.
   */
    public void setVoidCallable(int times) {
        try {
            state.setVoidCallable(new Range(times));
        } catch (RuntimeException e) {
            throw (RuntimeException) e.fillInStackTrace();
        }
    }
View Full Code Here

   * @exception NullPointerException
   *                if throwable is null.
   */
    public void setThrowable(Throwable throwable, int times) {
        try {
            state.setThrowable(throwable, new Range(times));
        } catch (RuntimeException e) {
            throw (RuntimeException) e.fillInStackTrace();
        }
    }
View Full Code Here

   *             called on the mock object before. or if the last method
   *             called on the mock does not return <code>boolean</code>.
   */
    public void setReturnValue(boolean value, int times) {
        try {
            state.setReturnValue(value, new Range(times));
        } catch (RuntimeException e) {
            throw (RuntimeException) e.fillInStackTrace();
        }
    }
View Full Code Here

   *             called on the mock object before. or if the last method
   *             called on the mock does not return <code>double</code>.
   */
    public void setReturnValue(double value, int times) {
        try {
            state.setReturnValue(value, new Range(times));
        } catch (RuntimeException e) {
            throw (RuntimeException) e.fillInStackTrace();
        }
    }
View Full Code Here

   *             called on the mock object before. or if the last method
   *             called on the mock does not return <code>float</code>.
   */
    public void setReturnValue(float value, int times) {
        try {
            state.setReturnValue(value, new Range(times));
        } catch (RuntimeException e) {
            throw (RuntimeException) e.fillInStackTrace();
        }
    }
View Full Code Here

   *             called on the mock object before. or if the last method
   *             called on the mock does not return <code>byte, short, char, int, or long</code>.
   */
    public void setReturnValue(long value, int times) {
        try {
            state.setReturnValue(value, new Range(times));
        } catch (RuntimeException e) {
            throw (RuntimeException) e.fillInStackTrace();
        }
    }
View Full Code Here

   *             if the provided return value is not compatible to the return
   *             value of the last method called on the mock object.
   */
    public void setReturnValue(Object value, int times) {
        try {
            state.setReturnValue(value, new Range(times));
        } catch (RuntimeException e) {
            throw (RuntimeException) e.fillInStackTrace();
        }
    }
View Full Code Here

   *                called on the mock object before, or if the last method
   *                called on the mock was no void method.
   */
    public void setVoidCallable(int minCount, int maxCount) {
        try {
            state.setVoidCallable(new Range(minCount, maxCount));
        } catch (RuntimeException e) {
            throw (RuntimeException) e.fillInStackTrace();
        }
    }
View Full Code Here

   * @exception NullPointerException
   *                if throwable is null.
   */
    public void setThrowable(Throwable throwable, int minCount, int maxCount) {
        try {
            state.setThrowable(throwable, new Range(minCount, maxCount));
        } catch (RuntimeException e) {
            throw (RuntimeException) e.fillInStackTrace();
        }
    }
View Full Code Here

TOP

Related Classes of org.easymock.internal.Range

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.