Skip to content

Instantly share code, notes, and snippets.

@vyo
Created June 8, 2017 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vyo/2999531d60d7b3fff48e55edd6ee4419 to your computer and use it in GitHub Desktop.
Save vyo/2999531d60d7b3fff48e55edd6ee4419 to your computer and use it in GitHub Desktop.
public class EchoControllerTest {
private EchoController echoController;
@Before
public void init() {
echoController = new EchoController();
}
@Test
public void echo() throws Exception {
String input = "input";
String reverse = new StringBuilder(input).reverse().toString();
assertEquals(reverse, echoController.echo(input).getEcho());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment