Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Dietisheim2010-01-08 09:20:04 +0000
committerAndre Dietisheim2010-01-08 09:20:04 +0000
commit1473c10b46298ef28e832fdca69704cbd89c1b38 (patch)
treed86bfae41e2c89957c3bfa2402c9651605a08593 /plugins
parentde1e37f5acb809ac424e8eef198344fa9cd99137 (diff)
downloadcdo-1473c10b46298ef28e832fdca69704cbd89c1b38.tar.gz
cdo-1473c10b46298ef28e832fdca69704cbd89c1b38.tar.xz
cdo-1473c10b46298ef28e832fdca69704cbd89c1b38.zip
[262875] [Net4j] : java.nio.BufferUnderFlowException
https://bugs.eclipse.org/bugs/show_bug.cgi?id=262875
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/bugzilla/Bugzilla262875_Test.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/bugzilla/Bugzilla262875_Test.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/bugzilla/Bugzilla262875_Test.java
index 22bbb94c86..ee2a416020 100644
--- a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/bugzilla/Bugzilla262875_Test.java
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/bugzilla/Bugzilla262875_Test.java
@@ -65,7 +65,14 @@ public class Bugzilla262875_Test extends AbstractOMTest
super.doTearDown();
}
- public void testBufferUnderflowException() throws Exception
+ /**
+ * Tests if a buffer underflow exception occurs if the data sent in a request exactly matches the capacity of a
+ * buffer.
+ *
+ * @throws Exception
+ * the exception
+ */
+ public void testGivenDataMatchesBufferLengthThenBufferUnderflowException() throws Exception
{
final AtomicBoolean failed = new AtomicBoolean(false);
final CountDownLatch latch = new CountDownLatch(1);
@@ -146,6 +153,7 @@ public class Bugzilla262875_Test extends AbstractOMTest
{
out.writeByte(i);
}
+ // delay completion
Thread.sleep(100);
}

Back to the top