@Test public void testNonEmpty() throws Exception { EnvVars env = new EnvVars(); ElOyenteTriggerCause ej = new ElOyenteTriggerCause(env); assertEquals(env, ej.getEnvVars()); assertEquals("El Oyente received an XMPP event", ej.getShortDescription()); }
@Test public void testEmpty() throws Exception { ElOyenteTriggerCause ej = new ElOyenteTriggerCause(null); assertEquals(null, ej.getEnvVars()); assertEquals("El Oyente received an XMPP event", ej.getShortDescription()); }