Skip to content

Commit

Permalink
Fix checkstyle problems
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmarino committed Nov 19, 2024
1 parent 2919f5f commit 2f1a785
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 41 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/artifacts.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@

import static com.apicatalog.jsonld.JsonLd.compact;
import static com.apicatalog.jsonld.JsonLd.expand;
import static org.eclipse.dsp.DspConstants.DSP_CONTEXT;
import static org.eclipse.dsp.DspConstants.DSP_PREFIX;
import static org.eclipse.dsp.DspConstants.ODRL_CONTEXT;
import static com.networknt.schema.SpecVersion.VersionFlag.V202012;
import static java.lang.String.format;
import static org.assertj.core.api.Assertions.assertThat;
import static org.eclipse.dsp.DspConstants.DSP_CONTEXT;
import static org.eclipse.dsp.DspConstants.DSP_PREFIX;
import static org.eclipse.dsp.DspConstants.ODRL_CONTEXT;

/**
* Base class for Json-Ld expansion and compaction tests.
Expand Down Expand Up @@ -79,7 +79,7 @@ void setUp() {
mapper.registerModule(new JSONPModule());

try (var dspaceStream = getClass().getResourceAsStream("/context/dspace.jsonld");
var odrlStream = getClass().getResourceAsStream("/context/odrl.jsonld")) {
var odrlStream = getClass().getResourceAsStream("/context/odrl.jsonld")) {
var dspaceContext = mapper.readValue(dspaceStream, JsonObject.class);
@SuppressWarnings("DataFlowIssue")
Map<String, Document> cache = Map.of(DSP_CONTEXT, JsonDocument.of(dspaceContext),
Expand All @@ -97,7 +97,7 @@ void setUp() {
private static class LocalDocumentLoader implements DocumentLoader {
private final Map<String, Document> contexts = new HashMap<>();

public LocalDocumentLoader(Map<String, Document> contexts) {
LocalDocumentLoader(Map<String, Document> contexts) {
this.contexts.putAll(contexts);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public class InvalidTransferStartMessageSchemaTest extends AbstractSchemaTest {

@Test
void verifyInvalidCases() {
assertThat(schema.validate(INVALID_NO_TYPE, JSON).iterator().next().getType()).isEqualTo(REQUIRED);
assertThat(schema.validate(INVALID_NO_PROVIDER_ID, JSON).iterator().next().getType()).isEqualTo(REQUIRED);
assertThat(schema.validate(INVALID_NO_CONSUMER_ID, JSON).iterator().next().getType()).isEqualTo(REQUIRED);
assertThat(schema.validate(INVALID_NO_TYPE, JSON).iterator().next().getType()).isEqualTo(REQUIRED);
assertThat(schema.validate(INVALID_NO_PROVIDER_ID, JSON).iterator().next().getType()).isEqualTo(REQUIRED);
assertThat(schema.validate(INVALID_NO_CONSUMER_ID, JSON).iterator().next().getType()).isEqualTo(REQUIRED);
}

@BeforeEach
Expand Down

0 comments on commit 2f1a785

Please sign in to comment.