コード例 #1
0
  @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());
  }
コード例 #2
0
 @Test
 public void testEmpty() throws Exception {
   ElOyenteTriggerCause ej = new ElOyenteTriggerCause(null);
   assertEquals(null, ej.getEnvVars());
   assertEquals("El Oyente received an XMPP event", ej.getShortDescription());
 }