Package org.easymock.internal

Examples of org.easymock.internal.Range


   *             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 minCount, int maxCount) {
        try {
            state.setReturnValue(value, new Range(minCount, maxCount));
        } 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 minCount, int maxCount) {
        try {
            state.setReturnValue(value, new Range(minCount, maxCount));
        } 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 minCount, int maxCount) {
        try {
            state.setReturnValue(value, new Range(minCount, maxCount));
        } 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 minCount, int maxCount) {
        try {
            state.setReturnValue(value, new Range(minCount, maxCount));
        } 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 minCount, int maxCount) {
        try {
            state.setReturnValue(value, 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.