예제 #1
0
    @Before
    @Override
    public void setup() throws Exception {
      super.setup();

      when(userDAO.findById("woo")).thenReturn(null);
    }
예제 #2
0
    @Before
    @Override
    public void setup() throws Exception {
      super.setup();

      when(keySet.unlock(any(char[].class))).thenThrow(new CryptographicException("augh"));
    }
예제 #3
0
 @Before
 @Override
 public void setup() throws Exception {
   super.setup();
 }