blob: 15314b2365ad8b5d80fbfef41f3f4a9469dfb5fa [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 by SAP AG, Walldorf.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* SAP AG - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.ws.jaxws.testutils.jmock;
import org.jmock.core.InvocationDispatcher;
/**
* This class is equivalent to <c>org.jmock.core.AbstractDynamicMock</c>. The difference is that this class is parameterized. It extends from
* <c>org.jmock.core.AbstractDynamicMock</c> and is thus backward compatible.
*
* @author Hristo Sabev
*
* @param <T>
*/
public abstract class AbstractDynamicMock<T> extends org.jmock.core.AbstractDynamicMock
{
public AbstractDynamicMock(Class<T> mockedType, String name, InvocationDispatcher invocationDispatcher)
{
super(mockedType, name, invocationDispatcher);
}
public AbstractDynamicMock(Class<T> mockedType, String name)
{
super(mockedType, name);
}
@Override
@SuppressWarnings("unchecked")
public Class<T> getMockedType()
{
return super.getMockedType();
}
@Override
public abstract T proxy();
}