From f0ab29cc22e67da5e1230500bb8d39a809779580 Mon Sep 17 00:00:00 2001 From: Frank Maritato Date: Sat, 14 Nov 2009 02:01:49 +0000 Subject: [PATCH] added a test for isSet git-svn-id: https://lwes.svn.sourceforge.net/svnroot/lwes/lwes-java/trunk@273 a2f82657-cdd2-4550-bd36-68a8e7111808 --- src/test/java/org/lwes/EventTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/java/org/lwes/EventTest.java b/src/test/java/org/lwes/EventTest.java index 1710068..c1567ac 100644 --- a/src/test/java/org/lwes/EventTest.java +++ b/src/test/java/org/lwes/EventTest.java @@ -5,6 +5,7 @@ package org.lwes; import org.apache.commons.codec.binary.Base64; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; @@ -30,6 +31,17 @@ public class EventTest { } @Test + public void testIsSet() throws EventSystemException { + + Event evt = new Event("Test", false, eventTemplate); + assertFalse(evt.isSet("notset")); + + evt.setInt32("set", 32); + assertTrue(evt.isSet("set")); + + } + + @Test public void testNullValue() throws EventSystemException { Event evt = new Event("Test", false, eventTemplate); Short s = evt.getInt16("a"); -- 2.11.4.GIT