Skip to content

Commit

Permalink
Created test case to reproduce issue #77, with no success
Browse files Browse the repository at this point in the history
  • Loading branch information
lvca committed Aug 19, 2015
1 parent 4144f2d commit 4448aed
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ public void testCreateVertex() {
assertEquals(1, graph.countVertices("Person"));
}

@Test
public void testCreateTargetVertexIfNotExists() {
process("{source: { content: { value: 'name,idf,parent\nParent,1,\nChild,2,1' } }, extractor : { row: {} },"
+ " transformers: [{csv: {}}, {merge: { joinFieldName:'idf', lookup:'V.idf'}}, {vertex: {class:'V'}},"+
"{edge:{ class: 'E', joinFieldName: 'parent', lookup: 'V.idf', unresolvedLinkAction: 'CREATE' }, if: '$input.parent IS NOT NULL'}"
+ "], loader: { orientdb: { dbURL: 'memory:ETLBaseTest', dbType:'graph', useLightweightEdges:false } } }");

assertEquals(2, graph.countVertices("V"));
}

@Test
public void testErrorOnDuplicateVertex() {
try {
Expand Down

0 comments on commit 4448aed

Please sign in to comment.