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