|
1 | 1 | package org.neo4j.graphql
|
2 | 2 |
|
3 | 3 | import apoc.date.Date
|
4 |
| -import demo.org.neo4j.graphql.utils.TestUtils.createTestsInPath |
5 | 4 | import org.junit.jupiter.api.*
|
6 | 5 | import org.neo4j.driver.AuthTokens
|
7 | 6 | import org.neo4j.driver.Driver
|
8 | 7 | import org.neo4j.driver.GraphDatabase
|
9 |
| -import org.neo4j.graphql.utils.CypherTestSuite |
| 8 | +import org.neo4j.graphql.factories.CypherTestFactory |
| 9 | +import org.neo4j.graphql.utils.TestUtils.createTestsInPath |
10 | 10 | import org.neo4j.harness.Neo4j
|
11 | 11 | import org.neo4j.harness.Neo4jBuilders
|
12 | 12 | import java.nio.file.Path
|
@@ -37,66 +37,66 @@ class CypherTests {
|
37 | 37 |
|
38 | 38 | @Disabled("This test is disabled because it is not yet migrated")
|
39 | 39 | @TestFactory
|
40 |
| - fun `cypher-directive-tests`() = CypherTestSuite("cypher-directive-tests.adoc", driver).generateTests() |
| 40 | + fun `cypher-directive-tests`() = CypherTestFactory("cypher-directive-tests.adoc", driver).generateTests() |
41 | 41 |
|
42 | 42 | @Disabled("This test is disabled because it is not yet migrated")
|
43 | 43 | @TestFactory
|
44 |
| - fun `dynamic-property-tests`() = CypherTestSuite("dynamic-property-tests.adoc", driver).generateTests() |
| 44 | + fun `dynamic-property-tests`() = CypherTestFactory("dynamic-property-tests.adoc", driver).generateTests() |
45 | 45 |
|
46 | 46 | @Disabled("This test is disabled because it is not yet migrated")
|
47 | 47 | @TestFactory
|
48 |
| - fun `filter-tests`() = CypherTestSuite("filter-tests.adoc", driver).generateTests() |
| 48 | + fun `filter-tests`() = CypherTestFactory("filter-tests.adoc", driver).generateTests() |
49 | 49 |
|
50 | 50 | @Disabled("This test is disabled because it is not yet migrated")
|
51 | 51 | @TestFactory
|
52 |
| - fun `relationship-tests`() = CypherTestSuite("relationship-tests.adoc", driver).generateTests() |
| 52 | + fun `relationship-tests`() = CypherTestFactory("relationship-tests.adoc", driver).generateTests() |
53 | 53 |
|
54 | 54 | @Disabled("This test is disabled because it is not yet migrated")
|
55 | 55 | @TestFactory
|
56 |
| - fun `movie-tests`() = CypherTestSuite("movie-tests.adoc", driver).generateTests() |
| 56 | + fun `movie-tests`() = CypherTestFactory("movie-tests.adoc", driver).generateTests() |
57 | 57 |
|
58 | 58 | @Disabled("This test is disabled because it is not yet migrated")
|
59 | 59 | @TestFactory
|
60 |
| - fun `property-tests`() = CypherTestSuite("property-tests.adoc", driver).generateTests() |
| 60 | + fun `property-tests`() = CypherTestFactory("property-tests.adoc", driver).generateTests() |
61 | 61 |
|
62 | 62 | @Disabled("This test is disabled because it is not yet migrated")
|
63 | 63 | @TestFactory
|
64 |
| - fun `translator-tests1`() = CypherTestSuite("translator-tests1.adoc", driver).generateTests() |
| 64 | + fun `translator-tests1`() = CypherTestFactory("translator-tests1.adoc", driver).generateTests() |
65 | 65 |
|
66 | 66 | @Disabled("This test is disabled because it is not yet migrated")
|
67 | 67 | @TestFactory
|
68 |
| - fun `translator-tests2`() = CypherTestSuite("translator-tests2.adoc", driver).generateTests() |
| 68 | + fun `translator-tests2`() = CypherTestFactory("translator-tests2.adoc", driver).generateTests() |
69 | 69 |
|
70 | 70 | @Disabled("This test is disabled because it is not yet migrated")
|
71 | 71 | @TestFactory
|
72 |
| - fun `translator-tests3`() = CypherTestSuite("translator-tests3.adoc", driver).generateTests() |
| 72 | + fun `translator-tests3`() = CypherTestFactory("translator-tests3.adoc", driver).generateTests() |
73 | 73 |
|
74 | 74 | @Disabled("This test is disabled because it is not yet migrated")
|
75 | 75 | @TestFactory
|
76 | 76 | fun `translator-tests-custom-scalars`() =
|
77 |
| - CypherTestSuite("translator-tests-custom-scalars.adoc", driver).generateTests() |
| 77 | + CypherTestFactory("translator-tests-custom-scalars.adoc", driver).generateTests() |
78 | 78 |
|
79 | 79 | @Disabled("This test is disabled because it is not yet migrated")
|
80 | 80 | @TestFactory
|
81 |
| - fun `optimized-query-for-filter`() = CypherTestSuite("optimized-query-for-filter.adoc", driver).generateTests() |
| 81 | + fun `optimized-query-for-filter`() = CypherTestFactory("optimized-query-for-filter.adoc", driver).generateTests() |
82 | 82 |
|
83 | 83 | @Disabled("This test is disabled because it is not yet migrated")
|
84 | 84 | @TestFactory
|
85 |
| - fun `custom-fields`() = CypherTestSuite("custom-fields.adoc", driver).generateTests() |
| 85 | + fun `custom-fields`() = CypherTestFactory("custom-fields.adoc", driver).generateTests() |
86 | 86 |
|
87 | 87 | @Disabled("This test is disabled because it is not yet migrated")
|
88 | 88 | @TestFactory
|
89 |
| - fun `test issues`() = createTestsInPath("issues", { CypherTestSuite(it, driver).generateTests() }) |
| 89 | + fun `test issues`() = createTestsInPath("issues", { CypherTestFactory(it, driver).generateTests() }) |
90 | 90 |
|
91 | 91 | @TestFactory
|
92 | 92 | fun `new cypher tck tests v2`() =
|
93 |
| - createTestsInPath("tck-test-files/cypher/v2", { CypherTestSuite(it, driver).generateTests() }) |
| 93 | + createTestsInPath("tck-test-files/cypher/v2", { CypherTestFactory(it, driver).generateTests() }) |
94 | 94 |
|
95 | 95 | @TestFactory
|
96 | 96 | fun `integration-tests`() =
|
97 | 97 | createTestsInPath(
|
98 | 98 | "integration-test-files",
|
99 |
| - { CypherTestSuite(it, driver, createMissingBlocks = false).generateTests() }) |
| 99 | + { CypherTestFactory(it, driver, createMissingBlocks = false).generateTests() }) |
100 | 100 |
|
101 | 101 | companion object {
|
102 | 102 | private val INTEGRATION_TESTS = System.getProperty("neo4j-graphql-java.integration-tests", "false") == "true"
|
|
0 commit comments