@Test public void target() throws Exception { HashSet<String> target = new HashSet<>(); target.add("a"); target.add("b"); DefaultUntypedRecordableEvent event = new DefaultUntypedRecordableEvent("unitTestEvent", target); assertEquals(target, event.getTarget()); DefaultUntypedRecordableEvent event2 = new DefaultUntypedRecordableEvent("unitTestEvent"); assertEquals(Collections.emptySet(), event2.getTarget()); DefaultUntypedRecordableEvent event3 = new DefaultUntypedRecordableEvent(); assertEquals(Collections.emptySet(), event3.getTarget()); }
@Override public Set<String> getTarget() { return this.target; }
DefaultUntypedRecordableEvent implements UntypedRecordableEvent, TargetableEvent { @Override public Set<String> getTarget() { return this.target; } }
DefaultUntypedRecordableEvent implements UntypedRecordableEvent, TargetableEvent { @Override public Set<String> getTarget() { return this.target; } DefaultUntypedRecordableEvent(String eventType);   DefaultUntypedRecordableEvent();   DefaultUntypedRecordableEvent(String eventType, Set<String> target); }
DefaultUntypedRecordableEvent implements UntypedRecordableEvent, TargetableEvent { @Override public Set<String> getTarget() { return this.target; } DefaultUntypedRecordableEvent(String eventType);   DefaultUntypedRecordableEvent();   DefaultUntypedRecordableEvent(String eventType, Set<String> target); @Override String getEventType(); @Override boolean matches(Object otherEvent); @Override Set<String> getTarget(); }
DefaultUntypedRecordableEvent implements UntypedRecordableEvent, TargetableEvent { @Override public Set<String> getTarget() { return this.target; } DefaultUntypedRecordableEvent(String eventType);   DefaultUntypedRecordableEvent();   DefaultUntypedRecordableEvent(String eventType, Set<String> target); @Override String getEventType(); @Override boolean matches(Object otherEvent); @Override Set<String> getTarget();  }