@Before
 public void setup() {
   super.setup();
   account = mock(InvestmentAccount.class);
   when(accountDAO.findAccount(Mockito.anyString(), eq(1))).thenReturn(account);
 }
예제 #2
0
 @BeforeClass
 public static void beforeClass() {
   Setup.touch();
 }
 @Before
 public void setup() {
   super.setup();
   when(accountDAO.findAccount(Mockito.anyString(), eq(99))).thenReturn(null);
 }
예제 #4
0
 static {
   Setup.setLmdbLibraryPath();
 }