Address JavaFormat Violations in Ldif Tests

Issue gh-743
This commit is contained in:
Josh Cummings
2023-05-09 16:34:53 -06:00
parent 961146182f
commit e14e0f8211
2 changed files with 13 additions and 12 deletions

View File

@@ -201,9 +201,10 @@ public class DefaultAttributeValidationPolicyTests {
log.info("Success!");
}
catch (Exception e) {
if (!this.exceptions.contains(this.line))
fail("Exception thrown: " + e.getClass().getSimpleName() + " (message: " + e.getMessage() + ")");
catch (Exception ex) {
if (!this.exceptions.contains(this.line)) {
fail("Exception thrown: " + ex.getClass().getSimpleName() + " (message: " + ex.getMessage() + ")");
}
}
}

View File

@@ -71,8 +71,8 @@ public class LdifParserTests {
try {
this.parser.open();
}
catch (IOException e) {
fail(e.getMessage());
catch (IOException ex) {
fail(ex.getMessage());
}
}
@@ -97,10 +97,10 @@ public class LdifParserTests {
count++;
}
}
catch (InvalidAttributeFormatException e) {
log.error("Invalid attribute", e);
catch (InvalidAttributeFormatException ex) {
log.error("Invalid attribute", ex);
if (count != 6) {
fail(e.getMessage());
fail(ex.getMessage());
}
}
@@ -114,8 +114,8 @@ public class LdifParserTests {
log.info("Done!");
}
catch (IOException e) {
fail(e.getMessage());
catch (IOException ex) {
fail(ex.getMessage());
}
}
@@ -127,8 +127,8 @@ public class LdifParserTests {
try {
this.parser.close();
}
catch (IOException e) {
fail(e.getMessage());
catch (IOException ex) {
fail(ex.getMessage());
}
}