Package org.powermock.api.easymock.internal.mockstrategy.impl

Examples of org.powermock.api.easymock.internal.mockstrategy.impl.StrictMockStrategy


     */
    public static <T> T createStrictPartialMock(Class<T> type, String methodName, Class<?>[] methodParameterTypes,
                                                Object[] constructorArguments, Class<?>[] constructorParameterTypes) {
        ConstructorArgs constructorArgs = new ConstructorArgs(Whitebox.getConstructor(type, constructorParameterTypes),
                constructorArguments);
        return doMockSpecific(type, new StrictMockStrategy(), new String[] { methodName }, constructorArgs,
                methodParameterTypes);
    }
View Full Code Here


     * Note that you must replay the class when using this method since this
     * behavior is part of the class mock.
     */
    public static synchronized <T> IExpectationSetters<T> expectStrictNew(Class<T> type, Object... arguments)
            throws Exception {
        return doExpectNew(type, new StrictMockStrategy(), null, arguments);
    }
View Full Code Here

     * automatically. In most cases you should use
     * {@link #expectNew(Class, Object...)} instead.
     */
    public static synchronized <T> IExpectationSetters<T> expectStrictNew(Class<T> type, Class<?>[] parameterTypes,
                                                                          Object... arguments) throws Exception {
        return doExpectNew(type, new StrictMockStrategy(), parameterTypes, arguments);
    }
View Full Code Here

TOP

Related Classes of org.powermock.api.easymock.internal.mockstrategy.impl.StrictMockStrategy

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.