Created
June 8, 2017 13:06
-
-
Save vyo/2999531d60d7b3fff48e55edd6ee4419 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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