Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package com.arcadedb.remote;

import com.arcadedb.database.RID;
import com.arcadedb.schema.DocumentType;
import com.arcadedb.schema.Property;
import org.junit.jupiter.api.BeforeEach;
Expand Down Expand Up @@ -48,6 +49,7 @@ void setUp() {
when(mockSchema.getType("TestDoc")).thenReturn(mockType);
when(mockType.getName()).thenReturn("TestDoc");
when(mockType.getPolymorphicPropertyIfExists(ArgumentMatchers.anyString())).thenReturn(null);
when(mockDatabase.newRID(ArgumentMatchers.anyString())).thenAnswer(inv -> new RID(inv.getArgument(0)));

final Map<String, Object> attributes = new HashMap<>();
attributes.put(Property.TYPE_PROPERTY, "TestDoc");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package com.arcadedb.remote;

import com.arcadedb.database.RID;
import com.arcadedb.graph.Edge;
import com.arcadedb.schema.Property;
import org.junit.jupiter.api.BeforeEach;
Expand Down Expand Up @@ -47,6 +48,7 @@ void setUp() {
when(mockSchema.getType("TestEdge")).thenReturn(mockType);
when(mockType.getName()).thenReturn("TestEdge");
when(mockType.getPolymorphicPropertyIfExists(ArgumentMatchers.anyString())).thenReturn(null);
when(mockDatabase.newRID(ArgumentMatchers.anyString())).thenAnswer(inv -> new RID(inv.getArgument(0)));

final Map<String, Object> attributes = new HashMap<>();
attributes.put(Property.TYPE_PROPERTY, "TestEdge");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package com.arcadedb.remote;

import com.arcadedb.database.RID;
import com.arcadedb.graph.Vertex;
import com.arcadedb.schema.Property;
import org.junit.jupiter.api.BeforeEach;
Expand Down Expand Up @@ -47,6 +48,7 @@ void setUp() {
when(mockSchema.getType("TestVertex")).thenReturn(mockType);
when(mockType.getName()).thenReturn("TestVertex");
when(mockType.getPolymorphicPropertyIfExists(ArgumentMatchers.anyString())).thenReturn(null);
when(mockDatabase.newRID(ArgumentMatchers.anyString())).thenAnswer(inv -> new RID(inv.getArgument(0)));

final Map<String, Object> attributes = new HashMap<>();
attributes.put(Property.TYPE_PROPERTY, "TestVertex");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package com.arcadedb.remote;

import com.arcadedb.database.RID;
import com.arcadedb.graph.Edge;
import com.arcadedb.graph.Vertex;
import com.arcadedb.query.sql.executor.Result;
Expand Down Expand Up @@ -50,6 +51,7 @@ void setUp() {
when(mockDatabase.getSchema()).thenReturn(mockSchema);
when(mockSchema.getType("TestEdge")).thenReturn(mockEdgeType);
when(mockEdgeType.getName()).thenReturn("TestEdge");
when(mockDatabase.newRID(ArgumentMatchers.anyString())).thenAnswer(inv -> new RID(inv.getArgument(0)));

// Build an immutable edge to use as source for the mutable edge
final Map<String, Object> attributes = new HashMap<>();
Expand Down
Loading