@Test(expected=IndexOutOfBoundsException.class) public void testGetPullable() { Divert div = new Divert(); div.getPullableOutput(1); }
@Override public Pullable getPullableOutput(int index) { if (index > 0) { throw new IndexOutOfBoundsException( "This processor does not have a pushable at index " + index); } if (m_outputPullable == null) { m_outputPullable = new DivertPullable(); } return m_outputPullable; }
Divert extends Processor { @Override public Pullable getPullableOutput(int index) { if (index > 0) { throw new IndexOutOfBoundsException( "This processor does not have a pushable at index " + index); } if (m_outputPullable == null) { m_outputPullable = new DivertPullable(); } return m_outputPullable; } }
Divert extends Processor { @Override public Pullable getPullableOutput(int index) { if (index > 0) { throw new IndexOutOfBoundsException( "This processor does not have a pushable at index " + index); } if (m_outputPullable == null) { m_outputPullable = new DivertPullable(); } return m_outputPullable; } Divert(); }
Divert extends Processor { @Override public Pullable getPullableOutput(int index) { if (index > 0) { throw new IndexOutOfBoundsException( "This processor does not have a pushable at index " + index); } if (m_outputPullable == null) { m_outputPullable = new DivertPullable(); } return m_outputPullable; } Divert(); Divert divertTo(int index); @Override Divert duplicate(boolean with_state); @Override synchronized void setPushableOutput(int i, /*@ non_null @*/ Pushable p); @Override Pushable getPushableInput(int index); @Override Pullable getPullableOutput(int index); }
Divert extends Processor { @Override public Pullable getPullableOutput(int index) { if (index > 0) { throw new IndexOutOfBoundsException( "This processor does not have a pushable at index " + index); } if (m_outputPullable == null) { m_outputPullable = new DivertPullable(); } return m_outputPullable; } Divert(); Divert divertTo(int index); @Override Divert duplicate(boolean with_state); @Override synchronized void setPushableOutput(int i, /*@ non_null @*/ Pushable p); @Override Pushable getPushableInput(int index); @Override Pullable getPullableOutput(int index);  }