Skip to content

Commit

Permalink
fix test add multiple sample types #184423157
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebSLane committed Feb 20, 2023
1 parent 229ab84 commit 55124ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<major.version>2</major.version>
<minor.version>7</minor.version>
<state.version>0</state.version> <!-- 0 = alpha, 1 = beta, 2 = rc, 3 = deployable -->
<fix.version>26</fix.version>
<fix.version>27</fix.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<liquibase.propertyFile>${project.basedir}/liquibase/liquibase.properties</liquibase.propertyFile>
<castor.version>1.4.1</castor.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void validate(Object target, Errors errors) {

JSONArray tests = JSONUtils.getAsArray(sampleType.get("tests"));
for (int j = 0; j < tests.size(); ++j) {
JSONObject test = JSONUtils.getAsObject(tests.get(i));
JSONObject test = JSONUtils.getAsObject(tests.get(j));
ValidationHelper.validateIdField(StringUtil.nullSafeToString(test.get("id")), "JsonWad", errors,
false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void validate(Object target, Errors errors) {

JSONArray tests = JSONUtils.getAsArray(sampleType.get("tests"));
for (int j = 0; j < tests.size(); ++j) {
JSONObject test = JSONUtils.getAsObject(tests.get(i));
JSONObject test = JSONUtils.getAsObject(tests.get(j));
ValidationHelper.validateIdField(StringUtil.nullSafeToString(test.get("id")), "JsonWad",
"sampleTypes[" + i + "] tests[" + j + "] id", errors, false);
}
Expand Down

0 comments on commit 55124ac

Please sign in to comment.