View Javadoc

1   /**
2    * Copyright 2012 The Kuali Foundation
3    *
4    * Licensed under the the Educational Community License, Version 1.0
5    * (the "License"); you may not use this file except in compliance
6    * with the License.  You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl1.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.student.common.mock;
17  
18  /**
19   * Mock implementations that implement this interface can be cleared.  i.e. reset back to their initial conditions.
20   * 
21   * Typically this will occur and be coordinated by the data loader used by the test case.
22   * 
23   * This needs to be here because some of the mock imnpl's are not located in the main code instead of the test code.
24   * 
25   * @author ocleirig
26   *
27   */
28  public interface MockService {
29  
30  	/**
31  	 * Clear all cached service data.  This should place the service back to its initial configuration.
32  	 * 
33  	 */
34  	public void clear();
35  	
36  }