Esempio n. 1
0
  @Test
  public void testObjectSourceConstructor() {
    final MockObjectSource source = new MockObjectSource(15);
    assertEquals(15, source.getId());

    assertEquals(0, source.getAttached());
    source.attach();
    assertEquals(1, source.getAttached());
  }
  @Test
  public void testLeftInputAdapterNode() {
    final MockObjectSource source = new MockObjectSource(15);
    final LeftInputAdapterNode liaNode = new LeftInputAdapterNode(23, source, buildContext);
    assertEquals(23, liaNode.getId());

    assertEquals(0, source.getAttached());
    source.attach();
    assertEquals(1, source.getAttached());
  }