Skip to content

Commit

Permalink
Change the test case
Browse files Browse the repository at this point in the history
  • Loading branch information
daneshk committed Nov 11, 2024
1 parent ca23498 commit e1c9191
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ public void testPostgreSQLOptionRecord() {

for (int i = 0; i < diagnosticErrorStream.size(); i++) {
Diagnostic diagnostic = diagnosticErrorStream.get(i);
if (i <= 7) {
Assert.assertEquals(diagnostic.diagnosticInfo().code(), POSTGRESQL_101.getCode());
Assert.assertEquals(diagnostic.diagnosticInfo().messageFormat(),
POSTGRESQL_101.getMessage());
} else {
if (8 <= i && i <= 10) {
Assert.assertEquals(diagnostic.diagnosticInfo().code(), POSTGRESQL_102.getCode());
Assert.assertEquals(diagnostic.diagnosticInfo().messageFormat(),
POSTGRESQL_102.getMessage());
} else {
Assert.assertEquals(diagnostic.diagnosticInfo().code(), POSTGRESQL_101.getCode());
Assert.assertEquals(diagnostic.diagnosticInfo().messageFormat(),
POSTGRESQL_101.getMessage());
}
}
}
Expand Down

0 comments on commit e1c9191

Please sign in to comment.