diagnose test failure

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@630810 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2008-02-25 11:19:40 +00:00
parent fa8cb17019
commit 5673a34dbe
1 changed files with 6 additions and 3 deletions

View File

@ -80,9 +80,10 @@ public abstract class AbstractIndexCreationTestCase extends AbstractIndexerTestC
IndexReader reader = IndexReader.open( index.getIndexDirectory() );
try
{
assertEquals( "Check index size", 1, reader.numDocs() );
Document document = reader.document( 0 );
assertRecord( record, document );
assertEquals( "Check index size", 1, reader.numDocs() );
}
finally
{
@ -101,9 +102,10 @@ public abstract class AbstractIndexCreationTestCase extends AbstractIndexerTestC
IndexReader reader = IndexReader.open( index.getIndexDirectory() );
try
{
assertEquals( "Check index size", 1, reader.numDocs() );
Document document = reader.document( 0 );
assertRecord( record, document );
assertEquals( "Check index size", 1, reader.numDocs() );
}
finally
{
@ -127,9 +129,10 @@ public abstract class AbstractIndexCreationTestCase extends AbstractIndexerTestC
IndexReader reader = IndexReader.open( index.getIndexDirectory() );
try
{
assertEquals( "Check index size", 1, reader.numDocs() );
Document document = reader.document( 0 );
assertRecord( record, document );
assertEquals( "Check index size", 1, reader.numDocs() );
}
finally
{