Skip to content

Commit 0eff297

Browse files
committed
openMocks
1 parent 874c6c9 commit 0eff297

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/test/java/com/uber/cadence/internal/sync/TestActivityEnvironmentInternalTest.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,6 @@ public class TestActivityEnvironmentInternalTest {
4444

4545
private Object testActivityExecutor;
4646

47-
// Functional interfaces matching the exact method signatures
48-
@FunctionalInterface
49-
interface Func<R> {
50-
R get() throws Exception; // Changed back to get() to match original signature
51-
}
52-
53-
@FunctionalInterface
54-
interface Func1<T, R> {
55-
R apply(T arg) throws Exception; // Kept as is
56-
}
57-
5847
// Helper method to find the inner class
5948
private Class<?> findTestActivityExecutorClass() {
6049
for (Class<?> declaredClass : TestActivityEnvironmentInternal.class.getDeclaredClasses()) {
@@ -75,7 +64,7 @@ private void printMethods(Class<?> clazz) {
7564

7665
@Before
7766
public void setUp() {
78-
MockitoAnnotations.initMocks(this);
67+
MockitoAnnotations.openMocks(this);
7968

8069
try {
8170
// Find the inner class first

0 commit comments

Comments
 (0)