@Test @GradedTest(name="greet(String who) works", points=2.0) public void greetSomebody() { assertEquals(GREETING + ", World!", unit.greet("World")); }
@Override public String greet() { return this.greeting; }
Hello implements Greeting { @Override public String greet() { return this.greeting; } }
Hello implements Greeting { @Override public String greet() { return this.greeting; } Hello(final String greeting); }
Hello implements Greeting { @Override public String greet() { return this.greeting; } Hello(final String greeting); @Override String greet(); @Override String greet(final String who); @Override void printGreeting(); }
Hello implements Greeting { @Override public String greet() { return this.greeting; } Hello(final String greeting); @Override String greet(); @Override String greet(final String who); @Override void printGreeting();  }