Fix failing line length checks

Original commit: elastic/x-pack-elasticsearch@6a493a70a4
This commit is contained in:
David Kyle 2017-05-22 12:39:51 +01:00
parent 8e890d0365
commit 1873624a18
1 changed files with 6 additions and 3 deletions

View File

@ -366,7 +366,8 @@ public class MachineLearningLicensingTests extends BaseMlIntegTestCase {
assertNotNull(putJobResponse);
PlainActionFuture<PutDatafeedAction.Response> putDatafeedListener = PlainActionFuture.newFuture();
new MachineLearningClient(client).putDatafeed(
new PutDatafeedAction.Request(createDatafeed(datafeedId, jobId, Collections.singletonList(datafeedIndex))), putDatafeedListener);
new PutDatafeedAction.Request(createDatafeed(datafeedId, jobId,
Collections.singletonList(datafeedIndex))), putDatafeedListener);
PutDatafeedAction.Response putDatafeedResponse = putDatafeedListener.actionGet();
assertNotNull(putDatafeedResponse);
PlainActionFuture<OpenJobAction.Response> openJobListener = PlainActionFuture.newFuture();
@ -394,7 +395,8 @@ public class MachineLearningLicensingTests extends BaseMlIntegTestCase {
// the stop datafeed due to invalid license happens async, so check if the datafeed turns into stopped state:
assertBusy(() -> {
GetDatafeedsStatsAction.Response response =
new MachineLearningClient(client).getDatafeedsStats(new GetDatafeedsStatsAction.Request(datafeedId)).actionGet();
new MachineLearningClient(client)
.getDatafeedsStats(new GetDatafeedsStatsAction.Request(datafeedId)).actionGet();
assertEquals(DatafeedState.STOPPED, response.getResponse().results().get(0).getDatafeedState());
});
} else {
@ -482,7 +484,8 @@ public class MachineLearningLicensingTests extends BaseMlIntegTestCase {
assertNotNull(putJobResponse);
PlainActionFuture<PutDatafeedAction.Response> putDatafeedListener = PlainActionFuture.newFuture();
new MachineLearningClient(client).putDatafeed(
new PutDatafeedAction.Request(createDatafeed(datafeedId, jobId, Collections.singletonList(jobId))), putDatafeedListener);
new PutDatafeedAction.Request(createDatafeed(datafeedId, jobId,
Collections.singletonList(jobId))), putDatafeedListener);
PutDatafeedAction.Response putDatafeedResponse = putDatafeedListener.actionGet();
assertNotNull(putDatafeedResponse);
}