Ejemplo n.º 1
0
  @BeforeClass
  public static void inContext() throws InterruptedException {
    if (eventHistory == null) {
      InfinitestCoreBuilder builder =
          new InfinitestCoreBuilder(fakeEnvironment(), new FakeEventQueue());
      builder.setUpdateSemaphore(createMock(ConcurrencyController.class));
      builder.setFilter(new InfinitestTestFilter());
      InfinitestCore core = builder.createCore();
      collector = new ResultCollector(core);

      eventHistory = new EventSupport();
      core.addTestResultsListener(eventHistory);
      core.addTestQueueListener(eventHistory);

      core.update();
      eventHistory.assertRunComplete();
    }
  }
Ejemplo n.º 2
0
 @Override
 public void actionPerformed(ActionEvent e) {
   core.reload();
 }