diff --git a/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/Neo4JSetup.java b/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/Neo4JSetup.java index fd28a84..aa03a29 100644 --- a/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/Neo4JSetup.java +++ b/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/Neo4JSetup.java @@ -35,7 +35,7 @@ public class Neo4JSetup { public static Label ANSWER = Label.label("Answer"); public static Label COMMENT = Label.label("Comment"); - public static synchronized GraphDatabaseService createDatabase(Path dbDirectory, URL dumpLocation) throws IOException, IncorrectFormat, InterruptedException { + public static synchronized GraphDatabaseService createDatabase(Path dbDirectory, URL dumpLocation) throws IOException, IncorrectFormat { boolean databaseExists = Files.exists(dbDirectory); DatabaseManagementService databaseManagementService = createManagementService(dbDirectory); if(!databaseExists){ @@ -61,7 +61,7 @@ private static GraphDatabaseService createDB(DatabaseManagementService databaseM return graphDb; } - private static void loadDB(Path dbDirectory, URL dumpLocation) throws IOException, IncorrectFormat, InterruptedException { + private static void loadDB(Path dbDirectory, URL dumpLocation) throws IOException, IncorrectFormat { DatabaseLayout layout = DatabaseLayout.of(Neo4jLayout.of(dbDirectory), DB_NAME); deleteRecursively(layout.databaseDirectory()); diff --git a/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/AirbnbBenchmark.java b/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/AirbnbBenchmark.java index a8f41a2..77b9332 100644 --- a/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/AirbnbBenchmark.java +++ b/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/AirbnbBenchmark.java @@ -1,7 +1,6 @@ package io.github.danthe1st.arebac.neo4j.tests.airbnb; import java.io.IOException; -import java.net.URISyntaxException; import java.util.ArrayList; import java.util.List; import java.util.Map; @@ -135,7 +134,7 @@ public AirbnbState() { hostPatternInfo = new PatternInfo<>(List.of("131304391", "155715332", "404944621"), Scenario1Test::createAuthorizedCetAllReviewsFromHostGraphPattern); reviewerPatternInfo = new PatternInfo<>(List.of("272671293", "227163707", "268281268", "31292360"), Scenario1Test::createAuthorizedGetAllReviewsFromReviewerGraphPattern); scenario2PatternInfo = new PatternInfo<>(List.of(new Scenario2Id("278934759", "1310402"), new Scenario2Id("363134483", "1310402")), id -> Scenario2Test.editListingInNeighborhoodPattern(id.subjectId(), id.neighborhoodId())); - }catch(IOException | IncorrectFormat | InterruptedException | URISyntaxException e){ + }catch(IOException | IncorrectFormat e){ throw new RuntimeException("cannot initialize benchmark state", e); } } diff --git a/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/AirbnbSetup.java b/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/AirbnbSetup.java index 4511a79..6327625 100644 --- a/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/AirbnbSetup.java +++ b/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/AirbnbSetup.java @@ -1,7 +1,6 @@ package io.github.danthe1st.arebac.neo4j.tests.airbnb; import java.io.IOException; -import java.net.URISyntaxException; import java.nio.file.Path; import io.github.danthe1st.arebac.neo4j.tests.Neo4JSetup; @@ -19,7 +18,7 @@ public class AirbnbSetup { public static final String NEIGHBORHOOD = "Neighborhood"; - public static synchronized GraphDatabaseService getDatabase() throws IOException, IncorrectFormat, InterruptedException, URISyntaxException { + public static synchronized GraphDatabaseService getDatabase() throws IOException, IncorrectFormat { if(graphDb == null){ graphDb = Neo4JSetup.createDatabase(Path.of("testdb", "airbnb"), AirbnbSetup.class.getClassLoader().getResource("testdumps/airbnb/airbnb.dump")); } diff --git a/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/Scenario1Test.java b/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/Scenario1Test.java index 37e16aa..79037bf 100644 --- a/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/Scenario1Test.java +++ b/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/Scenario1Test.java @@ -5,7 +5,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import java.io.IOException; -import java.net.URISyntaxException; import java.util.List; import java.util.Map; import java.util.Set; @@ -39,7 +38,7 @@ class Scenario1Test { private GraphDatabaseService database; @BeforeEach - void setUp() throws IOException, IncorrectFormat, InterruptedException, URISyntaxException { + void setUp() throws IOException, IncorrectFormat { database = AirbnbSetup.getDatabase(); } diff --git a/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/Scenario2Test.java b/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/Scenario2Test.java index e2e93a3..26f8760 100644 --- a/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/Scenario2Test.java +++ b/arebac-neo4j/src/test/java/io/github/danthe1st/arebac/neo4j/tests/airbnb/Scenario2Test.java @@ -5,7 +5,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import java.io.IOException; -import java.net.URISyntaxException; import java.util.List; import java.util.Map; import java.util.Set; @@ -39,7 +38,7 @@ class Scenario2Test { private GraphDatabaseService database; @BeforeEach - void setUp() throws IOException, IncorrectFormat, InterruptedException, URISyntaxException { + void setUp() throws IOException, IncorrectFormat { database = AirbnbSetup.getDatabase(); }