Examples of portIndex()


Examples of javaflow.network.api.PortReference.portIndex()

    }

    @Test(expectedExceptions = Error.class)
    public void simplePortArrayIndexThrowsError() {
        PortReference ref = PortReference.parse("in.OUT");
        ref.portIndex();
    }

    @Test
    public void arrayPort() {
        PortReference ref = PortReference.parse("in.BLAAH[0]");
View Full Code Here

Examples of javaflow.network.api.PortReference.portIndex()

        PortReference ref = PortReference.parse("in.BLAAH[0]");
        Assert.assertEquals(ref.componentName(), "in");
        Assert.assertEquals(ref.portName(), "BLAAH");
        Assert.assertEquals(ref.componentAndPortName(), "in.BLAAH");
        Assert.assertTrue(ref.isArrayPort());
        Assert.assertEquals(ref.portIndex(), 0);
        Assert.assertEquals(ref.toString(), "in.BLAAH[0]");
    }

    @Test
    public void simplePortNoComponent() {
View Full Code Here

Examples of javaflow.network.api.PortReference.portIndex()

        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() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.