PortReference ref = PortReference.parse("BLAAH[0]");
Assert.assertEquals(ref.componentName(), null);
Assert.assertEquals(ref.portName(), "BLAAH");
Assert.assertEquals(ref.componentAndPortName(), null);
Assert.assertTrue(ref.isArrayPort());
Assert.assertEquals(ref.portIndex(), 0);
Assert.assertEquals(ref.toString(), "BLAAH[0]");
}
@Test(expectedExceptions = MalformedPortReference.class)
public void malformedInput2() {