Skip to content

Commit

Permalink
IGNITE-22450 fix test (#275)
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksandr Nikolaev <aonikolaev@sberbank.ru>
  • Loading branch information
nao-it and Aleksandr Nikolaev authored Jun 10, 2024
1 parent 03eb072 commit dfeea51
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public class JacksonHelper {
/** */
public static void readAndValidateBasicJsonModelProperties(Path path, ObjectMapper mapper, String className) throws IOException {
Map jsonAsMap = mapper.readValue(new File(path.toAbsolutePath().toString()), LinkedHashMap.class);
String formatVer = jsonAsMap.get("formatVer").toString();
String formatVer = jsonAsMap.get("formatVersion").toString();
Long timestamp = (Long)jsonAsMap.get("timestamp");
String uid = jsonAsMap.get("uid").toString();
String modelCls = jsonAsMap.get("modelCls").toString();
String modelCls = jsonAsMap.get("modelClass").toString();

if (!modelCls.equals(className)) {
throw new IllegalArgumentException("You are trying to load " + modelCls + " model to " + className);
Expand Down

0 comments on commit dfeea51

Please sign in to comment.