Package org.jmock.dynamic

Examples of org.jmock.dynamic.DynaMock.method()


    public void testWorkingExample() {
        DynaMock mockMarket = new DynaMock(Market.class);
        Agent agent = new Agent((Market) mockMarket.proxy());

        mockMarket.method("buyStock", "IBM", new Integer(10));

        agent.buyLowestPriceStock(20);

        mockMarket.verify();
    }
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.