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

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

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