Skip to content

Commit

Permalink
Cleaned up code
Browse files Browse the repository at this point in the history
  • Loading branch information
jdereg committed Feb 4, 2024
1 parent 723386a commit 5fbf693
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void testEverything() {
Object[] testPair = testData[i];
try {
if (testPair.length != 2) {
throw new IllegalArgumentException("Test cases must have two values : [ source instance, target instance]");
throw new IllegalArgumentException("Test cases must have two values : { source instance, target instance }");
}
if (testPair[1] instanceof Throwable) {
Throwable t = (Throwable) testPair[1];
Expand All @@ -247,8 +247,6 @@ void testEverything() {
assertEquals(testPair[1], converter.convert(testPair[0], targetClass));
}
} catch (Throwable e) {
// Useful for debugging. Stop here, look at
// source: testPair[0] and target: testPair[1] (and try conveter.convert(testPair[0], targetClass) to see what you are getting back
System.err.println(Converter.getShortName(sourceClass) + ".class ==> " + Converter.getShortName(targetClass) + ".class");
System.err.print("testPair[" + i + "]=");
if (testPair.length == 2) {
Expand Down

0 comments on commit 5fbf693

Please sign in to comment.