@Test public void testUseDefaultKeysWorkflow() throws Exception { AddExtendedLoggingContext srv = new AddExtendedLoggingContext() .withUseDefaultKeys(true); AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(); msg.addObjectHeader(CoreConstants.WORKFLOW_ID_KEY, "workflow"); execute(srv, msg); assertEquals("workflow", MDC.get(CoreConstants.WORKFLOW_ID_KEY)); }
AddExtendedLoggingContext withUseDefaultKeys(Boolean useDefaultKeys){ setUseDefaultKeys(useDefaultKeys); return this; }
AddExtendedLoggingContext extends ServiceImp { AddExtendedLoggingContext withUseDefaultKeys(Boolean useDefaultKeys){ setUseDefaultKeys(useDefaultKeys); return this; } }
AddExtendedLoggingContext extends ServiceImp { AddExtendedLoggingContext withUseDefaultKeys(Boolean useDefaultKeys){ setUseDefaultKeys(useDefaultKeys); return this; } AddExtendedLoggingContext(); }
AddExtendedLoggingContext extends ServiceImp { AddExtendedLoggingContext withUseDefaultKeys(Boolean useDefaultKeys){ setUseDefaultKeys(useDefaultKeys); return this; } AddExtendedLoggingContext(); @Override void doService(AdaptrisMessage msg); @Override void prepare(); KeyValuePairList getValuesToSet(); void setValuesToSet(KeyValuePairList values); void setUseDefaultKeys(Boolean useDefaultKeys); Boolean getUseDefaultKeys(); }
AddExtendedLoggingContext extends ServiceImp { AddExtendedLoggingContext withUseDefaultKeys(Boolean useDefaultKeys){ setUseDefaultKeys(useDefaultKeys); return this; } AddExtendedLoggingContext(); @Override void doService(AdaptrisMessage msg); @Override void prepare(); KeyValuePairList getValuesToSet(); void setValuesToSet(KeyValuePairList values); void setUseDefaultKeys(Boolean useDefaultKeys); Boolean getUseDefaultKeys();  }