public class TestFileLockUtility extends TestCase2
FileLockUtility
.TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestFileLockUtility() |
TestFileLockUtility(String arg0) |
Modifier and Type | Method and Description |
---|---|
void |
test_advisoryLock()
Test creation of an advisory lock, that
FileLockUtility.openFile(File, String, boolean) will not grant an
exclusive FileLock if an advisory lock exists for a file, and
that the advisory lock is removed when the file is closed using
FileLockUtility.closeFile(File, RandomAccessFile) . |
void |
test_exclusiveLock()
Test verifies creation of an exclusive lock, that an advisory lock was
NOT created, and that the
FileChannel is correctly closed. |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getProperties, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logProperties
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
public TestFileLockUtility()
public TestFileLockUtility(String arg0)
arg0
- public void test_exclusiveLock() throws IOException
FileChannel
is correctly closed.IOException
public void test_advisoryLock() throws IOException
FileLockUtility.openFile(File, String, boolean)
will not grant an
exclusive FileLock
if an advisory lock exists for a file, and
that the advisory lock is removed when the file is closed using
FileLockUtility.closeFile(File, RandomAccessFile)
.IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.