Examples of AddStrategy


Examples of strategy.java.AddStrategy

  protected void setUp() throws Exception {
    m = new Multiplier();
  }
 
  public void testAddMultiplier() {
    m.setStrategy(new AddStrategy());
    assertEquals(6, m.multiply(2, 3));
  }
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.