@Test(expected = AgentConfigurationException.class) public void exceptionThrowIfNoSourceIsProvided() throws AgentConfigurationException { AbstractSplunkInternalHandler internalHandler = new DummySplunkInternalHandler(); internalHandler.setToken("testToken"); internalHandler.setHost("127.0.0.1"); internalHandler.setPort(8089); internalHandler.setScheme("https"); internalHandler.setSslSecurityProtocol("TLSv1_2"); internalHandler.setSplunkIndexName("main"); internalHandler.setSplunkSourceType("mule"); new HECTransportConfig.Builder(internalHandler).build(); }
public void setToken(String token) { this.token = token; }
HECTransportConfig extends HttpBasedSplunkConfig { public void setToken(String token) { this.token = token; } }
HECTransportConfig extends HttpBasedSplunkConfig { public void setToken(String token) { this.token = token; }  }
HECTransportConfig extends HttpBasedSplunkConfig { public void setToken(String token) { this.token = token; }  String getToken(); void setToken(String token); @Override String toString(); }
HECTransportConfig extends HttpBasedSplunkConfig { public void setToken(String token) { this.token = token; }  String getToken(); void setToken(String token); @Override String toString();  }