Revision 50796
Added by Alessia Bardi over 6 years ago
VirtuosoParthenosIteratorTest.java | ||
---|---|---|
24 | 24 |
} |
25 | 25 |
|
26 | 26 |
@Test |
27 |
public void fillGraphQueueTest() throws InterruptedException {
|
|
28 |
it.fillGraphQueue();
|
|
29 |
String s = it.getGraphs().take();
|
|
27 |
public void fillQueueTest() throws Exception {
|
|
28 |
it.fillQueue(); |
|
29 |
String s = it.getElements().take();
|
|
30 | 30 |
while(!s.equals(VirtuosoParthenosIterator.TERMINATOR)){ |
31 | 31 |
System.out.println(s); |
32 |
s = it.getGraphs().take();
|
|
32 |
s = it.getElements().take();
|
|
33 | 33 |
} |
34 | 34 |
Map<String, Integer> errors = it.getErrors(); |
35 | 35 |
for (Iterator<Entry<String, Integer>> it1 = errors.entrySet().iterator(); it1.hasNext(); ) { |
Also available in: Unified diff
Simplified code of VirtuosoIterator. Only one queue and not too many parallel calls: let's see if virtuoso is more happy and if debugging is easier.