1 /* 2 * Copyright (c) 2007 Mockito contributors 3 * This program is made available under the terms of the MIT License. 4 */ 5 6 package org.mockito; 7 8 import org.mockito.listeners.MockitoListener; 9 10 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 11 12 public class StateMaster { 13 reset()14 public void reset() { 15 mockingProgress().reset(); 16 mockingProgress().resetOngoingStubbing(); 17 } 18 validate()19 public void validate() { 20 mockingProgress().validateState(); 21 } 22 23 /** 24 * Clears Mockito listeners added by {@link MockitoFramework#addListener(MockitoListener)} 25 */ clearMockitoListeners()26 public void clearMockitoListeners() { 27 mockingProgress().clearListeners(); 28 } 29 } 30