Permalink
Browse files

aesthetic cleanup

  • Loading branch information...
1 parent 457d953 commit d460761ff9be04a2b38bc19f5282f3fcc418e162 @javasoze javasoze committed Sep 23, 2011
View
@@ -7,6 +7,6 @@
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
- <classpathentry kind="lib" path="/Users/hyan/workspace/ConvertLuceneFrom3To4/lib/master/lucene-core-4.0-SNAPSHOT.jar"/>
+ <classpathentry kind="lib" path="/Users/john/.m2/repository/org/apache/lucene/lucene-core/3.4.0/lucene-core-3.4.0.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
@@ -42,7 +42,6 @@ public void testSkipPerformance() throws IOException, InterruptedException
//System.out.println(c);
p4d.addDoc(c);
}
- System.out.println("Set Size:"+ p4d.size());
Thread arr [] = new Thread[5];
@@ -55,17 +54,10 @@ public void run()
try {
int docid;
-// String filename = "/Users/hyan/cloudData/" + this.getId();
-// PrintWriter pw = new PrintWriter(new FileOutputStream(filename, true));
- //JOHN: what are we testing here?
while((docid = dcit.nextDoc()) != DocIdSetIterator.NO_MORE_DOCS)
{
- //System.out.println("Thread " + this.getId() + ": " + docid);
- //pw.print(docid + ",");
- //Thread.sleep(0, 25000);
+ assertEquals(true, p4d.find(docid));
}
-// pw.flush();
-// pw.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
@@ -126,12 +118,7 @@ public void run()
//PrintWriter pw = new PrintWriter(new FileOutputStream(filename, true));
while((docid = dcit.nextDoc()) != DocIdSetIterator.NO_MORE_DOCS)
{
- if(!p4d.find(docid))
- {
- System.out.println("thread " + this.getId() + " cannot find " + docid);
- }
assertEquals(true, p4d.find(docid));
- assertEquals(false,p4d.find(35));
}
} catch (IOException e) {
// TODO Auto-generated catch block
Binary file not shown.

0 comments on commit d460761

Please sign in to comment.