mirror of https://github.com/apache/lucene.git
Replace "throw exception" with the more idiomatic Junit's "assertNull", following Uwe's advice.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1441831 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
58f2f88254
commit
c4f6e3053e
|
@ -721,9 +721,7 @@ public abstract class BaseTermVectorsFormatTestCase extends LuceneTestCase {
|
|||
reader.close();
|
||||
writer.close();
|
||||
dir.close();
|
||||
if (exception.get() != null) {
|
||||
throw new RuntimeException("One thread threw an exception", exception.get());
|
||||
}
|
||||
assertNull("One thread threw an exception", exception.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue