Skip to content

Commit

Permalink
minor upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
xamde committed Oct 29, 2023
1 parent a9ac1d4 commit d57f00f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 51 deletions.
6 changes: 6 additions & 0 deletions base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
<dependency><groupId>org.junit.jupiter</groupId><artifactId>junit-jupiter</artifactId><scope>test</scope></dependency>
<dependency><groupId>org.mockito</groupId><artifactId>mockito-core</artifactId><scope>test</scope></dependency>
<dependency><groupId>org.mockito</groupId><artifactId>mockito-junit-jupiter</artifactId><scope>test</scope></dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>31.1-jre</version>
</dependency>

</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.calpano.graphinout.base.gio;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.SuperBuilder;

import java.util.List;
Expand All @@ -9,6 +10,7 @@
/**
* The root document of a Gio model graph stream.
*/
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
public class GioDocument extends GioElementWithDescription {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.calpano.graphinout.base.gio;

import com.google.common.collect.Sets;
import lombok.RequiredArgsConstructor;

import javax.annotation.Nullable;
Expand Down Expand Up @@ -39,7 +40,7 @@ public void endEdge() throws IOException {
@Override
public void endGraph(@Nullable URL locator) throws IOException {
if (!nodesIds.containsAll(endpointsNode))
throw new IllegalStateException("All GioEdge endpoints should refer to an existing GioNode ID.");
throw new IllegalStateException("All GioEdge endpoints should refer to an existing GioNode ID. Missing: " + Sets.difference(endpointsNode,nodesIds));
if (!nodePortName.isEmpty()) {
List<String> missingPorts = new ArrayList<>();
for (String port : endpointsPort) {
Expand Down
60 changes: 11 additions & 49 deletions engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,12 @@
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>com.calpano.graphinout</groupId>
<artifactId>base</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.calpano.graphinout</groupId>
<artifactId>reader-tgf</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.calpano.graphinout</groupId>
<artifactId>reader-jgrapht</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.calpano.graphinout</groupId>
<artifactId>reader-graphml</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.calpano.graphinout</groupId>
<artifactId>reader-json</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency><groupId>com.calpano.graphinout</groupId><artifactId>base</artifactId><version>1.0-SNAPSHOT</version></dependency>
<dependency><groupId>com.calpano.graphinout</groupId><artifactId>reader-tgf</artifactId><version>1.0-SNAPSHOT</version></dependency>
<dependency><groupId>com.calpano.graphinout</groupId><artifactId>reader-jgrapht</artifactId><version>1.0-SNAPSHOT</version></dependency>
<dependency><groupId>com.calpano.graphinout</groupId><artifactId>reader-graphml</artifactId><version>1.0-SNAPSHOT</version></dependency>
<dependency><groupId>com.calpano.graphinout</groupId><artifactId>reader-json</artifactId><version>1.0-SNAPSHOT</version></dependency>
<dependency><groupId>com.calpano.graphinout</groupId><artifactId>reader-tripletext</artifactId><version>1.0-SNAPSHOT</version></dependency>
<!-- test -->
<dependency><groupId>org.junit.jupiter</groupId><artifactId>junit-jupiter</artifactId><scope>test</scope></dependency>
<dependency><groupId>org.mockito</groupId><artifactId>mockito-core</artifactId><scope>test</scope></dependency>
Expand All @@ -55,30 +36,11 @@
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.calpano.graphinout</groupId>
<artifactId>reader-tgf</artifactId>
<version>1.0-SNAPSHOT</version>
<type>test-jar</type>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.calpano.graphinout</groupId>
<artifactId>reader-jgrapht</artifactId>
<version>1.0-SNAPSHOT</version>
<type>test-jar</type>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.calpano.graphinout</groupId>
<artifactId>reader-graphml</artifactId>
<version>1.0-SNAPSHOT</version>
<type>test-jar</type>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<!-- depend on all reader projects you want to test -->
<dependency><groupId>com.calpano.graphinout</groupId><artifactId>reader-tgf</artifactId><version>1.0-SNAPSHOT</version><type>test-jar</type><classifier>tests</classifier><scope>test</scope></dependency>
<dependency><groupId>com.calpano.graphinout</groupId><artifactId>reader-jgrapht</artifactId><version>1.0-SNAPSHOT</version><type>test-jar</type><classifier>tests</classifier><scope>test</scope></dependency>
<dependency><groupId>com.calpano.graphinout</groupId><artifactId>reader-graphml</artifactId><version>1.0-SNAPSHOT</version><type>test-jar</type><classifier>tests</classifier><scope>test</scope></dependency>
<dependency><groupId>com.calpano.graphinout</groupId><artifactId>reader-tripletext</artifactId><version>1.0-SNAPSHOT</version><type>test-jar</type><classifier>tests</classifier><scope>test</scope></dependency>

</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static void beforeAll() {
@Test
void test() {
// find all resources
ReaderTests.getAllTestResourceFilePaths().forEach(r -> testResource(r));
ReaderTests.getAllTestResourceFilePaths().forEach(this::testResource);


// byte[] graphmlBytes1;
Expand Down

0 comments on commit d57f00f

Please sign in to comment.