@Test public void testCreateOutputInteraction() { OutputInteraction oi = null; try { oi = new SplunkLogOutputConnector().createOutputInteraction(); } catch (ConnectorException e) { e.printStackTrace(); } if (oi == null) { fail("unable to get outputinteraction"); } else { Properties props = new Properties(); props.setProperty("host", "192.168.56.1"); props.setProperty("resource", "/services/receivers/simple"); props.setProperty("usehttps", "yes"); props.setProperty("splunk_UT", "yes!"); props.setProperty("splunk_TestParam2", "lkadskjadkjsfjkldsjf"); props.setProperty("user", "admin"); props.setProperty("pass", "tester"); byte[] payload = "".getBytes(); try { Properties result = null; result = oi.send(props, payload); if (result.getProperty("status") == null) { fail("No status returned"); } else { System.out.println(result.getProperty("status")); } } catch (ConnectorException e) { e.printStackTrace(); } } }
@Override public OutputInteraction createOutputInteraction() throws ConnectorException { return new SplunkLogOutputInteraction(); }
SplunkLogOutputConnector extends AbstractOutputConnector implements OutputConnector { @Override public OutputInteraction createOutputInteraction() throws ConnectorException { return new SplunkLogOutputInteraction(); } }
SplunkLogOutputConnector extends AbstractOutputConnector implements OutputConnector { @Override public OutputInteraction createOutputInteraction() throws ConnectorException { return new SplunkLogOutputInteraction(); }  }
SplunkLogOutputConnector extends AbstractOutputConnector implements OutputConnector { @Override public OutputInteraction createOutputInteraction() throws ConnectorException { return new SplunkLogOutputInteraction(); }  @Override OutputInteraction createOutputInteraction(); }
SplunkLogOutputConnector extends AbstractOutputConnector implements OutputConnector { @Override public OutputInteraction createOutputInteraction() throws ConnectorException { return new SplunkLogOutputInteraction(); }  @Override OutputInteraction createOutputInteraction();  }