Minor - remove StringUtils#getStackTrace

- Remove StringUtils#getStackTrace in favor of Guava's Throwables#getStackTraceAsString
This commit is contained in:
ljacqu
2015-12-26 18:01:09 +01:00
parent 41e400e9dd
commit 5ab3a1f9ef
2 changed files with 1 additions and 35 deletions
@@ -6,9 +6,8 @@ import java.net.MalformedURLException;
import java.util.Arrays;
import java.util.List;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.stringContainsInOrder;
import static org.hamcrest.Matchers.greaterThan;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
@@ -121,18 +120,6 @@ public class StringUtilsTest {
assertThat(result, equalTo("[MalformedURLException]: Unrecognized URL format"));
}
@Test
public void shouldPrintStackTrace() {
// given
MalformedURLException ex = new MalformedURLException("Unrecognized URL format");
// when
String result = StringUtils.getStackTrace(ex);
// then
assertThat(result, stringContainsInOrder(getClass().getName()));
}
@Test
public void shouldGetDifferenceWithNullString() {
// given/when/then