mirror of
https://github.com/apache/lucene.git
synced 2025-03-06 08:19:23 +00:00
don't try to catch exceptions that are not thrown anymore
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150401 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c122d5bf3f
commit
3b6a2e7e56
@ -87,12 +87,7 @@ public class TestMultiReader extends TestCase {
|
||||
}
|
||||
|
||||
public void testTermVectors() {
|
||||
try {
|
||||
MultiReader reader = new MultiReader(dir, sis, false, readers);
|
||||
assertTrue(reader != null);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
assertTrue(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,6 @@ public class TestSegmentReader extends TestCase {
|
||||
}
|
||||
|
||||
public void testGetFieldNameVariations() {
|
||||
try {
|
||||
Collection result = reader.getFieldNames();
|
||||
assertTrue(result != null);
|
||||
assertTrue(result.size() == 7);
|
||||
@ -115,7 +114,6 @@ public class TestSegmentReader extends TestCase {
|
||||
}
|
||||
result = reader.getFieldNames(true);
|
||||
assertTrue(result != null);
|
||||
// System.out.println("Size: " + result.size());
|
||||
assertTrue(result.size() == 5);
|
||||
for (Iterator iter = result.iterator(); iter.hasNext();) {
|
||||
String s = (String) iter.next();
|
||||
@ -133,11 +131,6 @@ public class TestSegmentReader extends TestCase {
|
||||
result = reader.getIndexedFieldNames(false);
|
||||
assertTrue(result != null);
|
||||
assertTrue(result.size() == 3);
|
||||
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
assertTrue(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void testTerms() {
|
||||
@ -186,7 +179,6 @@ public class TestSegmentReader extends TestCase {
|
||||
}
|
||||
|
||||
public void testTermVectors() {
|
||||
try {
|
||||
TermFreqVector result = reader.getTermFreqVector(0, DocHelper.TEXT_FIELD_2_KEY);
|
||||
assertTrue(result != null);
|
||||
String [] terms = result.getTerms();
|
||||
@ -202,11 +194,6 @@ public class TestSegmentReader extends TestCase {
|
||||
TermFreqVector [] results = reader.getTermFreqVectors(0);
|
||||
assertTrue(results != null);
|
||||
assertTrue(results.length == 2);
|
||||
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
assertTrue(false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user