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:
Adrien Grand 2013-02-02 23:20:38 +00:00
parent 58f2f88254
commit c4f6e3053e
1 changed files with 1 additions and 3 deletions

View File

@ -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());
}
}