Ejemplo n.º 1
0
  @After
  public void tearDown() throws Exception {
    // Make sure that the query start and end have been called at least once.
    // Some of the tests might call it more than once.
    verify(queryStartEvent, atLeastOnce()).raise(Frontend.class, EventArgs.EMPTY);
    verify(queryCompleteEvent, atLeastOnce()).raise(Frontend.class, EventArgs.EMPTY);

    // Make sure the context is correct
    assertEquals(
        "Context should be 'test'",
        frontend.getCurrentContext(),
        "test"); //$NON-NLS-1$ //$NON-NLS-2$
  }