Package org.terrier.utility.io
Class CheckClosedStreams
- java.lang.Object
-
- org.terrier.tests.ApplicationSetupBasedTest
-
- org.terrier.utility.io.CheckClosedStreams
-
- All Implemented Interfaces:
ApplicationSetup.TerrierApplicationPlugin
public class CheckClosedStreams extends ApplicationSetupBasedTest implements ApplicationSetup.TerrierApplicationPlugin
Utility class during testing to ensure that all files are closed
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CheckClosedStreams.CloseCheckFilterInputStream
static class
CheckClosedStreams.CloseCheckFilterOutputStream
-
Field Summary
-
Fields inherited from class org.terrier.tests.ApplicationSetupBasedTest
terrier_etc, terrier_home, testName, tmpfolder
-
-
Constructor Summary
Constructors Constructor Description CheckClosedStreams()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
allClosed()
static void
enable()
static void
finished()
void
finishedLog()
void
initialise()
Called by ApplicationSetup to initialise the pluginvoid
testSingleFileLeftOpen()
-
Methods inherited from class org.terrier.tests.ApplicationSetupBasedTest
addGlobalTerrierProperties, deleteTerrierEtc, makeEnvironment, writeTemporaryFile, writeTemporaryFile, writeTemporaryFolder
-
-
-
-
Method Detail
-
testSingleFileLeftOpen
public void testSingleFileLeftOpen() throws java.lang.Exception
- Throws:
java.lang.Exception
-
enable
public static void enable()
-
finished
public static void finished()
-
finishedLog
public void finishedLog()
-
allClosed
public static boolean allClosed()
-
initialise
public void initialise() throws java.lang.Exception
Description copied from interface:ApplicationSetup.TerrierApplicationPlugin
Called by ApplicationSetup to initialise the plugin- Specified by:
initialise
in interfaceApplicationSetup.TerrierApplicationPlugin
- Throws:
java.lang.Exception
-
-