Skip to content

Commit

Permalink
chore: update extensions manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
bamthomas committed Jan 29, 2025
1 parent 92b06b3 commit cbba713
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
4 changes: 2 additions & 2 deletions datashare-app/src/main/resources/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"id": "datashare-nlp-opennlp",
"name": "OPENNLP Pipeline",
"description": "Extension to extract NER entities with OPENNLP",
"url": "https://github.com/ICIJ/datashare-extension-nlp-opennlp/releases/download/8.0.2/datashare-nlp-opennlp-8.0.2-jar-with-dependencies.jar",
"url": "https://github.com/ICIJ/datashare-extension-nlp-opennlp/releases/download/9.0.1/datashare-nlp-opennlp-9.0.1-jar-with-dependencies.jar",
"homepage": "https://github.com/ICIJ/datashare-extension-nlp-opennlp",
"version": "8.0.2",
"version": "9.0.1",
"type": "NLP"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,4 @@ public void test_serialize_deserialize() throws Exception {
assertThat(taskCreation).isEqualTo(taskView);
assertThat(taskCreation.createdAt).isEqualTo(taskCreation.createdAt);
}

@Test
public void test_serialize_deserialize_null() throws Exception {
String json = JsonObjectMapper.MAPPER.writeValueAsString(new Task<>(null, null, Task.State.CREATED, 0, null, new HashMap<>()));
assertThat(json).contains("\"@type\":\"Task\"");
assertThat(json).contains("\"args\":{}");

Task<?> taskCreation = JsonObjectMapper.MAPPER.readValue(json, Task.class);
assertThat(taskCreation).isEqualTo(new Task<>(null, null, Task.State.CREATED, 0, null, new HashMap<>()));
assertThat(taskCreation.createdAt).isEqualTo(taskCreation.createdAt);
}
}

0 comments on commit cbba713

Please sign in to comment.