Coverage Summary for Class: TestPool (org.umlg.sqlg.test)
Class |
Class, %
|
Method, %
|
Branch, %
|
Line, %
|
TestPool |
100%
(1/1)
|
100%
(2/2)
|
100%
(4/4)
|
100%
(6/6)
|
package org.umlg.sqlg.test;
import org.apache.tinkerpop.gremlin.structure.T;
import org.junit.Test;
/**
* Date: 2014/07/16
* Time: 7:43 PM
*/
public class TestPool extends BaseTest {
//TODO this test nothing, needs to multi threaded
@Test
public void testSqlGraphConnectionsDoesNotExhaustPool() {
for (int i = 0; i < 1000; i++) {
this.sqlgGraph.addVertex(T.label, "Person");
}
this.sqlgGraph.tx().commit();
for (int i = 0; i < 1000; i++) {
this.sqlgGraph.traversal().V().has(T.label, "Person").hasNext();
}
}
}