Exemple #1
0
 private void setExistingDirsFilter() {
   context.checking(
       new Expectations() {
         {
           allowing(existentDirsFilterMock)
               .checkExistenceAndThrowStopActionIfNot(TEST_TEST_CLASSES_DIR);
         }
       });
   test.existingDirsFilter = existentDirsFilterMock;
 }
Exemple #2
0
  @org.junit.Test
  public void testExecuteWithNonExistingCompiledTestsDir() {
    setUpMocks(test);
    test.setUnmanagedClasspath(null);
    context.checking(
        new Expectations() {
          {
            allowing(existentDirsFilterMock)
                .checkExistenceAndThrowStopActionIfNot(TEST_TEST_CLASSES_DIR);
            will(throwException(new StopActionException()));
          }
        });
    test.existingDirsFilter = existentDirsFilterMock;

    test.execute();
  }