Skip to content

Commit

Permalink
fixup! fixup! Too big error message JabRef#4827 (adding unit test)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpolishc committed May 14, 2019
1 parent b9641f9 commit 831c771
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -6,11 +6,10 @@

class StringFormatterTest {

private String error = "The server time zone value 'MSK' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.";

@Test
void formatErrorMessage() {
StringFormatter stringFormatter = new StringFormatter();
String error = "The server time zone value 'MSK' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.";
Exception exceptionUnderTest = new Exception(error);
String errorToBeThrown = stringFormatter.formatErrorMessage(exceptionUnderTest);
String[] lines = errorToBeThrown.split(System.lineSeparator());
Expand Down

0 comments on commit 831c771

Please sign in to comment.