Package net.sf.jdistunit.platform.action

Examples of net.sf.jdistunit.platform.action.TestActionResult


        // Create treasure test.
        TestResultTreasure treasure = new TestResultTreasure();

        // Add 2-set of results.
        List<ITestActionResult> res1 = new ArrayList<ITestActionResult>();
        res1.add(new TestActionResult());
        res1.add(new TestActionResult());
        treasure.addTestResults(res1, new HostId("localhost:15908"));

        // Add 3-set of results.
        List<ITestActionResult> res2 = new ArrayList<ITestActionResult>();
        res2.add(new TestActionResult());
        res2.add(new TestActionResult());
        res2.add(new TestActionResult());
        treasure.addTestResults(res2, new HostId("localhost:15908"));

        // See whether all results arrived.
        final int agentCount = treasure.getAgentCount();
        assertEquals(2, agentCount);
View Full Code Here

TOP

Related Classes of net.sf.jdistunit.platform.action.TestActionResult

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.