Merge pull request #14159 from dkapil/task/JAVA-13721_2
JAVA-13721 Removed mockmaker file, not needed with mockito v5+
This commit is contained in:
commit
521847c5ad
|
@ -3,10 +3,8 @@ package com.baeldung.mockito.mockfinal;
|
|||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
import static org.mockito.Mockito.withSettings;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.mockito.MockMakers;
|
||||
|
||||
import com.baeldung.mockito.FinalList;
|
||||
import com.baeldung.mockito.MyList;
|
||||
|
@ -30,14 +28,4 @@ class MockFinalsUnitTest {
|
|||
|
||||
assertThat(mock.size()).isNotEqualTo(1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenMockFinalMethodMockWorks_withInlineMockMaker() {
|
||||
MyList myList = new MyList();
|
||||
|
||||
MyList mock = mock(MyList.class, withSettings().mockMaker(MockMakers.INLINE));
|
||||
when(mock.finalMethod()).thenReturn(1);
|
||||
|
||||
assertThat(mock.finalMethod()).isNotEqualTo(myList.finalMethod());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
mock-maker-inline
|
Loading…
Reference in New Issue