Skip to content

Commit

Permalink
feat: add testcontainer test
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed Nov 15, 2024
1 parent b63ef3b commit 718b91c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,20 @@ void should_return_false_if_series_does_not_have_operation() throws RmesExceptio
}

@Test
void should_creators() throws RmesException {
void should_get_creators() throws RmesException {
OpSeriesQueries.setConfig(new ConfigStub());
JSONArray creators = repositoryGestion.getResponseAsArray(OpSeriesQueries.getCreatorsById("s1236"));
assertEquals(1, creators.length());
assertEquals("stamp", creators.getJSONObject(0).getString("creators"));
}

@Test
void should_get_operations() throws RmesException {
OpSeriesQueries.setConfig(new ConfigStub());
JSONArray operations = repositoryGestion.getResponseAsArray(OpSeriesQueries.getOperations("s1207"));
assertEquals(13, operations.length());
}

@Test
void should_return_all_series() throws Exception {
OpSeriesQueries.setConfig(new ConfigStub());
Expand Down

0 comments on commit 718b91c

Please sign in to comment.