ch.inftec.ju.ee.test.Greeter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ju-testing-ee Show documentation
Show all versions of ju-testing-ee Show documentation
Contains helping classes for Unit Testing, supporting CDI and EE features, including DB access
package ch.inftec.ju.ee.test;
import java.io.PrintStream;
import javax.enterprise.context.RequestScoped;
/**
* Greeter class from the Arquillain getting started guide.
*
* Can be used for simple CDI testing
* @author Martin
*
*/
@RequestScoped
public class Greeter {
public void greet(PrintStream to, String name) {
to.println(createGreeting(name));
}
public String createGreeting(String name) {
return "Hello, " + name + "!";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy