Search in sources :

Example 6 with MocksControl

use of org.easymock.internal.MocksControl in project intellij-community by JetBrains.

the class PyRefactoringPresenterTestCase method setUp.

/**
   * Initializes test. Always run it <strong>first</strong> if overwrite.
   */
@Override
public void setUp() throws Exception {
    super.setUp();
    myFixture.copyDirectoryToProject("refactoring/" + myRefactoringName + "/presenter/", "");
    myFixture.configureFromTempProjectFile("file.py");
    myMocksControl = new MocksControl(MocksControl.MockType.NICE);
    myView = myMocksControl.createMock(myViewClass);
    configureMockCapture();
}
Also used : MocksControl(org.easymock.internal.MocksControl)

Aggregations

MocksControl (org.easymock.internal.MocksControl)6 Date (java.util.Date)2 IMocksControl (org.easymock.IMocksControl)2 Test (org.junit.Test)2 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)2 PyClass (com.jetbrains.python.psi.PyClass)1 PyMemberInfoStorage (com.jetbrains.python.refactoring.classes.PyMemberInfoStorage)1 MockInvocationHandler (org.easymock.internal.MockInvocationHandler)1 EasyMockMethodInvocationControl (org.powermock.api.easymock.internal.invocationcontrol.EasyMockMethodInvocationControl)1 MockClassLoader (org.powermock.core.classloader.MockClassLoader)1 InvocationSubstitute (org.powermock.core.spi.support.InvocationSubstitute)1