@Test public void testHandleExternalEvent() throws InterruptedException { String eventInfoAsXml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?><a>abc</a>"; CSSEvent event = new CSSEvent(EventTypes.PRIVACY_POLICY_NEGOTIATION_EVENT, "eventName", "eventSource", eventInfoAsXml); classUnderTest.handleExternalEvent(event); Thread.sleep(TIME_TO_WAIT_IN_MS); assertFalse(finalCallback.negotiationComplete); assertFalse(finalCallback.negotiationError); }
@Override public void handleExternalEvent(CSSEvent event) { LOG.warn("External event received unexpectedly: {}", event.geteventType()); }
PrivacyPolicyNegotiationListener extends EventListener { @Override public void handleExternalEvent(CSSEvent event) { LOG.warn("External event received unexpectedly: {}", event.geteventType()); } }
PrivacyPolicyNegotiationListener extends EventListener { @Override public void handleExternalEvent(CSSEvent event) { LOG.warn("External event received unexpectedly: {}", event.geteventType()); } PrivacyPolicyNegotiationListener(IEventMgr eventMgr); }
PrivacyPolicyNegotiationListener extends EventListener { @Override public void handleExternalEvent(CSSEvent event) { LOG.warn("External event received unexpectedly: {}", event.geteventType()); } PrivacyPolicyNegotiationListener(IEventMgr eventMgr); void addNegotiationInfo(PrivacyPolicyNegotiationInfo info); void unsubscribeEvents(); @Override void handleInternalEvent(InternalEvent event); @Override void handleExternalEvent(CSSEvent event); }
PrivacyPolicyNegotiationListener extends EventListener { @Override public void handleExternalEvent(CSSEvent event) { LOG.warn("External event received unexpectedly: {}", event.geteventType()); } PrivacyPolicyNegotiationListener(IEventMgr eventMgr); void addNegotiationInfo(PrivacyPolicyNegotiationInfo info); void unsubscribeEvents(); @Override void handleInternalEvent(InternalEvent event); @Override void handleExternalEvent(CSSEvent event);  }