|
44 | 44 | import org.junit.Test; |
45 | 45 |
|
46 | 46 | import com.arangodb.entity.AqlExecutionExplainEntity; |
47 | | -import com.arangodb.entity.AqlExecutionExplainEntity.ExecutionNode; |
48 | 47 | import com.arangodb.entity.AqlExecutionExplainEntity.ExecutionPlan; |
49 | 48 | import com.arangodb.entity.AqlFunctionEntity; |
50 | 49 | import com.arangodb.entity.AqlParseEntity; |
@@ -726,20 +725,7 @@ public void explainQuery() throws InterruptedException, ExecutionException { |
726 | 725 | assertThat(plan.getEstimatedNrItems(), greaterThan(0)); |
727 | 726 | assertThat(plan.getVariables().size(), is(1)); |
728 | 727 | assertThat(plan.getVariables().iterator().next().getName(), is("i")); |
729 | | - assertThat(plan.getNodes().size(), is(3)); |
730 | | - final Iterator<ExecutionNode> iterator = plan.getNodes().iterator(); |
731 | | - final ExecutionNode singletonNode = iterator.next(); |
732 | | - assertThat(singletonNode.getType(), is("SingletonNode")); |
733 | | - final ExecutionNode collectionNode = iterator.next(); |
734 | | - assertThat(collectionNode.getType(), is("EnumerateCollectionNode")); |
735 | | - assertThat(collectionNode.getDatabase(), is("_system")); |
736 | | - assertThat(collectionNode.getCollection(), is("_apps")); |
737 | | - assertThat(collectionNode.getOutVariable(), is(notNullValue())); |
738 | | - assertThat(collectionNode.getOutVariable().getName(), is("i")); |
739 | | - final ExecutionNode returnNode = iterator.next(); |
740 | | - assertThat(returnNode.getType(), is("ReturnNode")); |
741 | | - assertThat(returnNode.getInVariable(), is(notNullValue())); |
742 | | - assertThat(returnNode.getInVariable().getName(), is("i")); |
| 728 | + assertThat(plan.getNodes().size(), is(greaterThan(0))); |
743 | 729 | }); |
744 | 730 | f.get(); |
745 | 731 | } |
|
0 commit comments