Package org.apache.lucene.util

General test support.

See:
          Description

Interface Summary
RollingBuffer.Resettable  
TestRuleIgnoreTestSuites.NestedTestSuite Marker interface for nested suites that should be ignored if executed in stand-alone mode.
 

Class Summary
_TestUtil General utility methods for Lucene unit tests.
English  
FailOnNonBulkMergesInfoStream Hackidy-Häck-Hack to cause a test to fail on non-bulk merges
LineFileDocs Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task
LuceneJUnit3MethodProvider Backwards compatible test* method provider (public, non-static).
LuceneTestCase Base class for all Lucene unit tests, Junit3 or Junit4 variant.
NullInfoStream Prints nothing.
Rethrow Sneaky: rethrowing checked exceptions as unchecked ones.
RollingBuffer<T extends RollingBuffer.Resettable> Acts like forever growing T[], but internally uses a circular buffer to reuse instances of T.
RunListenerPrintReproduceInfo A suite listener printing a "reproduce string".
TestRuleAssertionsRequired Require assertions for Lucene/Solr packages.
TestRuleFieldCacheSanity  
TestRuleIgnoreAfterMaxFailures This rule keeps a count of failed tests (suites) and will result in an AssumptionViolatedException after a given number of failures for all tests following this condition.
TestRuleIgnoreTestSuites This rule will cause the suite to be assumption-ignored if the test class implements a given marker interface and a special property is not set.
TestRuleMarkFailure A rule for marking failed tests and suites.
TestRuleNoInstanceHooksOverrides Don't allow Before and After hook overrides as it is most likely a user error and will result in superclass methods not being called (requires manual chaining).
TestRuleNoStaticHooksShadowing Don't allow shadowing of BeforeClass or AfterClass hooks as it is very likely a user error and will prevent execution of shadowed hooks.
TestRuleReportUncaughtExceptions Subscribes to Thread.setDefaultUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler) and causes test/ suite failures if uncaught exceptions are detected.
TestRuleReportUncaughtExceptions.UncaughtExceptionEntry  
TestRuleStoreClassName  
ThrottledIndexOutput Intentionally slow IndexOutput for testing.
 

Annotation Types Summary
LuceneTestCase.AwaitsFix Annotation for tests which exhibit a known issue and are temporarily disabled.
LuceneTestCase.Nightly Annotation for tests that should only be run during nightly builds.
LuceneTestCase.Slow Annotation for tests that are slow.
LuceneTestCase.SuppressCodecs Annotation for test classes that should avoid certain codec types (because they are expensive, for example).
LuceneTestCase.Weekly Annotation for tests that should only be run during weekly builds
 

Package org.apache.lucene.util Description

General test support. The primary class is LuceneTestCase, which extends JUnit with additional functionality.



Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.