Example #1
0
  @org.junit.Test
  public void testExecuteWithoutReporting() {
    setUpMocks(test);
    setExistingDirsFilter();
    test.setTestReport(false);
    context.checking(
        new Expectations() {
          {
            one(testFrameworkMock).prepare(getProject(), test);
            one(testFrameworkMock).getTestClassNames();
            will(returnValue(okTestClassNames));
            one(testFrameworkMock)
                .execute(getProject(), test, okTestClassNames, new ArrayList<String>());
          }
        });

    test.execute();
  }