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

Examples of it.unibs.ing.fp.testingconsole.hello.Hello


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


  }

  public void run() {
    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

import static org.junit.Assert.*;

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

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

TOP

Related Classes of it.unibs.ing.fp.testingconsole.hello.Hello

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.