Skip to content

Instantly share code, notes, and snippets.

@unclebob
Created October 3, 2010 18:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unclebob/608794 to your computer and use it in GitHub Desktop.
Save unclebob/608794 to your computer and use it in GitHub Desktop.
@RunWith(Suite.class)
@Suite.SuiteClasses({
WrapperTest.DegenerateTests.class})
public class WrapperTest {
public static class DegenerateTests {
@Test
public void emptyString() throws Exception {
assertThat(wrap("", 1), equalTo(""));
}
@Test
public void stringShorterThanCol() throws Exception {
assertThat(wrap("this", 10), equalTo("this"));
}
}
}
public class Wrapper {
public static String wrap(String s, int col) {
return s;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment