3 import org
.junit
.Ignore
;
5 import org
.lwes
.emitter
.MulticastEventEmitter
;
7 import java
.net
.InetAddress
;
9 // Make sure junit ignores this file. It really should be located somewhere else.
11 public class TestEmitter
{
12 public static void main(String
[] args
) {
14 MulticastEventEmitter emitter
= new MulticastEventEmitter();
15 emitter
.setMulticastAddress(InetAddress
.getByName("224.0.0.69"));
16 emitter
.setMulticastPort(9191);
19 Event e
= emitter
.createEvent("MyEvent", false);
20 e
.setBoolean("boolean", true);
21 e
.setInt16("int16", (short) 12345);
22 e
.setUInt16("uint16", 56789);
23 e
.setInt32("int32", 55555555);
24 e
.setUInt32("uint32", 20392039402L);
25 e
.setInt64("int64", 9999999);
26 e
.setUInt64("uint64", new java
.math
.BigInteger("9999999"));
27 e
.setIPAddress("ip", InetAddress
.getByName("24.199.3.198"));
28 e
.setString("key", "value");
30 } catch (Exception e
) {