Package org.apache.ace.nodelauncher.amazon.impl

Examples of org.apache.ace.nodelauncher.amazon.impl.AmazonNodeLauncher


import static org.apache.ace.test.utils.TestUtils.UNIT;

public class PortParseTest {
    @Test(groups = { UNIT })
    public void testParsePortsFromString() throws Exception {
        AmazonNodeLauncher instance = new AmazonNodeLauncher();
        Assert.assertTrue(assertEquals(instance.parseExtraPorts(new String[] {"1", "2", "3"}), new int[] {1, 2, 3}));
        Assert.assertTrue(assertEquals(instance.parseExtraPorts(new String[] {}), new int[] {}));
        Assert.assertTrue(assertEquals(instance.parseExtraPorts(new String[] {"800","900"}), new int[] {800, 900}));
    }
View Full Code Here


        Assert.assertTrue(assertEquals(instance.parseExtraPorts(new String[] {"800","900"}), new int[] {800, 900}));
    }
   
    @Test(groups = { UNIT })
    public void testMergePorts() throws Exception {
        AmazonNodeLauncher instance = new AmazonNodeLauncher();
        Assert.assertTrue(assertEquals(instance.mergePorts(new int[] {1, 2}, new int[] {3, 4, 5}), new int[] {1, 2, 3, 4, 5}));
        Assert.assertTrue(assertEquals(instance.mergePorts(new int[] {1}, new int[] {}), new int[] {1}));
        Assert.assertTrue(assertEquals(instance.mergePorts(new int[] {}, new int[] {}), new int[] {}));
        Assert.assertTrue(assertEquals(instance.mergePorts(new int[] {}, new int[] {1, 2, 3}), new int[] {1, 2, 3}));
    }
View Full Code Here

TOP

Related Classes of org.apache.ace.nodelauncher.amazon.impl.AmazonNodeLauncher

Copyright © 2018 www.massapicom. 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.