aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/net/java/sip/communicator/impl/protocol/irc/ResultTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/net/java/sip/communicator/impl/protocol/irc/ResultTest.java b/test/net/java/sip/communicator/impl/protocol/irc/ResultTest.java
index 64b6127..611fd9e 100644
--- a/test/net/java/sip/communicator/impl/protocol/irc/ResultTest.java
+++ b/test/net/java/sip/communicator/impl/protocol/irc/ResultTest.java
@@ -13,6 +13,17 @@ public class ResultTest
Assert.assertNull(result.getValue());
Assert.assertNull(result.getException());
}
+
+ public void testConstructionWithInitialValue()
+ {
+ Object initial = new Object();
+ Result<Object, Exception> result =
+ new Result<Object, Exception>(initial);
+ Assert.assertNotNull(result);
+ Assert.assertFalse(result.isDone());
+ Assert.assertSame(initial, result.getValue());
+ Assert.assertNull(result.getException());
+ }
public void testSetDone()
{