@Test public void should_construct_authorization_token_correctly() { DataSiftConfig config = new DataSiftConfig(); config.username = "USER"; config.apiKey = "KEY"; BulkManager bm = new BulkManager(config, null, null, null); assertEquals("USER:KEY", bm.getAuthorizationToken(config)); }
@SuppressWarnings("checkstyle:designforextension") protected String getAuthorizationToken(final DataSiftConfig config) { return config.username + ":" + config.apiKey; }
BulkManager implements Runnable { @SuppressWarnings("checkstyle:designforextension") protected String getAuthorizationToken(final DataSiftConfig config) { return config.username + ":" + config.apiKey; } }
BulkManager implements Runnable { @SuppressWarnings("checkstyle:designforextension") protected String getAuthorizationToken(final DataSiftConfig config) { return config.username + ":" + config.apiKey; } BulkManager(final DataSiftConfig config,
                       final SimpleConsumerManager simpleConsumerManager,
                       final Backoff backoff,
                       final Metrics metrics); }
BulkManager implements Runnable { @SuppressWarnings("checkstyle:designforextension") protected String getAuthorizationToken(final DataSiftConfig config) { return config.username + ":" + config.apiKey; } BulkManager(final DataSiftConfig config,
                       final SimpleConsumerManager simpleConsumerManager,
                       final Backoff backoff,
                       final Metrics metrics); final void setLogger(final Logger logger); final void shutdown(); final void run(); @SuppressWarnings("checkstyle:designforextension") HttpResponse post(final String data); }
BulkManager implements Runnable { @SuppressWarnings("checkstyle:designforextension") protected String getAuthorizationToken(final DataSiftConfig config) { return config.username + ":" + config.apiKey; } BulkManager(final DataSiftConfig config,
                       final SimpleConsumerManager simpleConsumerManager,
                       final Backoff backoff,
                       final Metrics metrics); final void setLogger(final Logger logger); final void shutdown(); final void run(); @SuppressWarnings("checkstyle:designforextension") HttpResponse post(final String data);  }