All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.test.faces.mock.MockController Maven / Gradle / Ivy

There is a newer version: 1.1.17
Show newest version
/*
 * $Id$
 *
 * License Agreement.
 *
 * Rich Faces - Natural Ajax for Java Server Faces (JSF)
 *
 * Copyright (C) 2007 Exadel, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 2.1 as published by the Free Software Foundation.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 */

package org.jboss.test.faces.mock;



/**
 * 

Instance of an Object implemented this interface can be injected into test class to simplify mock objects manipulations.

* @author [email protected] * */ public interface MockController { T createMock(Class clazz); T createMock(String name, Class clazz); T createNiceMock(Class clazz); T createNiceMock(String name, Class clazz); T createStrictMock(Class clazz); T createStrictMock(String name, Class clazz); /** *

Repaly all mock objects created by the {@link CdkTestRunner} and ones from parameters

*/ public void replay(Object ...objects); /** *

Verify all mock objects created by the {@link CdkTestRunner} and ones from parameters

*/ public void verify(Object ...objects); /** *

Reset all mock objects created by the {@link CdkTestRunner} and ones from patameters

*/ public void reset(Object ...objects); public void resetToNice(Object ...objects); public void resetToStrict(Object ...objects); public void resetToDefault(Object ...objects); /** * Release the mock {@link MockFacesEnvironment} environment created by the test runner. */ public void release(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy