Beispiel #1
0
  @Test
  public void shouldHaveCorrectTerminals() {
    assertThat(component.getTerminals().size(), is(2));

    InputTerminal incoming =
        (InputTerminal) component.getTerminalByName(OnOffCategory.STATE_TERMINAL);
    assertThat(incoming.getLabel(), is("Component activation"));

    OutputTerminal scheduler =
        (OutputTerminal) component.getTerminalByName(SchedulerCategory.OUTGOING_TERMINAL);
    assertThat(scheduler.getLabel(), is("Scheduling Terminal"));
  }