Created
March 20, 2019 14:41
-
-
Save albertusdev/20c7c9d0848e0aff2b879f1ff3b73d7e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.something.TargetClass; | |
import static org.mockito.Mockito.*; | |
class TestTargetClass { | |
// first options: use Annotations | |
@Mock | |
TargetClass mockTargetClass; | |
// second options: initialize using mock() | |
TargetClass mockTargetClass2 = mock(TargetClass.class); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment