mirror of https://github.com/apache/archiva.git
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:
parent
fa8cb17019
commit
5673a34dbe
|
@ -80,9 +80,10 @@ public abstract class AbstractIndexCreationTestCase extends AbstractIndexerTestC
|
||||||
IndexReader reader = IndexReader.open( index.getIndexDirectory() );
|
IndexReader reader = IndexReader.open( index.getIndexDirectory() );
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
assertEquals( "Check index size", 1, reader.numDocs() );
|
||||||
|
|
||||||
Document document = reader.document( 0 );
|
Document document = reader.document( 0 );
|
||||||
assertRecord( record, document );
|
assertRecord( record, document );
|
||||||
assertEquals( "Check index size", 1, reader.numDocs() );
|
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
@ -101,9 +102,10 @@ public abstract class AbstractIndexCreationTestCase extends AbstractIndexerTestC
|
||||||
IndexReader reader = IndexReader.open( index.getIndexDirectory() );
|
IndexReader reader = IndexReader.open( index.getIndexDirectory() );
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
assertEquals( "Check index size", 1, reader.numDocs() );
|
||||||
|
|
||||||
Document document = reader.document( 0 );
|
Document document = reader.document( 0 );
|
||||||
assertRecord( record, document );
|
assertRecord( record, document );
|
||||||
assertEquals( "Check index size", 1, reader.numDocs() );
|
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
@ -127,9 +129,10 @@ public abstract class AbstractIndexCreationTestCase extends AbstractIndexerTestC
|
||||||
IndexReader reader = IndexReader.open( index.getIndexDirectory() );
|
IndexReader reader = IndexReader.open( index.getIndexDirectory() );
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
assertEquals( "Check index size", 1, reader.numDocs() );
|
||||||
|
|
||||||
Document document = reader.document( 0 );
|
Document document = reader.document( 0 );
|
||||||
assertRecord( record, document );
|
assertRecord( record, document );
|
||||||
assertEquals( "Check index size", 1, reader.numDocs() );
|
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue