-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making lazy-load relations TRUE by default
Signed-off-by: ntisseyre <[email protected]> [cql-tests][tp-tests]
- Loading branch information
Showing
3 changed files
with
4 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,15 +14,9 @@ | |
|
||
package org.janusgraph.graphdb.inmemory; | ||
|
||
import org.apache.tinkerpop.gremlin.structure.VertexProperty; | ||
import org.janusgraph.core.JanusGraphVertex; | ||
import org.janusgraph.diskstorage.configuration.WriteConfiguration; | ||
import org.janusgraph.graphdb.configuration.builder.GraphDatabaseConfigurationBuilder; | ||
import org.janusgraph.graphdb.database.LazyLoadGraphTest; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.Assert.assertThrows; | ||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
/** | ||
* @author Matthias Broecheler ([email protected]) | ||
|
@@ -36,18 +30,4 @@ public void open(WriteConfiguration config) { | |
tx = graph.buildTransaction().start(); | ||
mgmt = graph.openManagement(); | ||
} | ||
|
||
@Override @Test | ||
public void testPropertyIdAccessInDifferentTransaction() { | ||
JanusGraphVertex v1 = graph.addVertex(); | ||
Object expectedId = v1.property("name", "foo").id(); | ||
graph.tx().commit(); | ||
|
||
VertexProperty p = getOnlyElement(v1.properties("name")); | ||
|
||
// access property id in new transaction | ||
graph.tx().commit(); | ||
Exception exception = assertThrows(IllegalStateException.class, p::id); | ||
assertEquals(exception.getMessage(), "Any lazy load operation is not supported when transaction is already closed."); | ||
} | ||
} |