Package it.unibs.ing.fp.testingconsole.hello

Examples of it.unibs.ing.fp.testingconsole.hello.Hello.sayHello()


  }
 
  @Test
  public void customMessageToCustomTarget() throws Exception {
    final Hello hello = new Hello("HY");
    assertEquals("HY, Duke!", hello.sayHello("Duke"));
  }
}
View Full Code Here


    io.println("Welcome to HelloApp!");
    boolean go = true;
    Hello hello = new Hello();
    while(go) {
      String target = io.readString("Message destination?");
      io.println(String.format("Message is: %s", hello.sayHello(target)));
      go = io.readBoolean("Continue?", "y", "n");
    }
    io.println("GoodBye");
  }
 
View Full Code Here

public class HelloTest {
  @Test
  public void defaultMessageForDefaultTarget() throws Exception {
    final Hello hello = new Hello();
    assertEquals("Hello, World!", hello.sayHello());
  }
 
  @Test
  public void customMessageForDefaultTarget() throws Exception {
    final Hello hello = new Hello("HY");
View Full Code Here

  }
 
  @Test
  public void customMessageForDefaultTarget() throws Exception {
    final Hello hello = new Hello("HY");
    assertEquals("HY, World!", hello.sayHello());
  }
 
  @Test
  public void customMessageToCustomTarget() throws Exception {
    final Hello hello = new Hello("HY");
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.