public class TestReceiveFile extends TestCase3
ResourceService
.TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestReceiveFile() |
TestReceiveFile(String name) |
Modifier and Type | Method and Description |
---|---|
void |
test_concurrentReceiveRequests()
Unit test verifies that concurrent "receive" requests for the same
resource do not cause problems with
FileLock . |
void |
test_receiveFile()
Test the ability to receive a file.
|
assertEquals, assertEquals, fillBufferWithRandomData
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 TestReceiveFile()
public TestReceiveFile(String name)
public void test_receiveFile() throws Exception
Exception
public void test_concurrentReceiveRequests() throws Exception
FileLock
.
Note: OverlappingFileLockException
s can arise when there are
concurrent requests to obtain a shared lock on the same file. Personally,
I think that this is a bug since the lock requests are shared and should
be processed without deadlock.
Exception
http://blogs.sun.com/DaveB/entry/new_improved_in_java_se1
,
http://forums.sun.com/thread.jspa?threadID=5324314.
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.