Also rename some *Status*Tests to *State*Tests

Original commit: elastic/x-pack-elasticsearch@6e1d3e2bba
This commit is contained in:
Dimitrios Athanasiou 2017-02-03 11:07:09 +00:00
parent ca4badeb46
commit 2883b00b7c
3 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ import org.elasticsearch.xpack.ml.action.UpdateJobStateAction.Request;
import org.elasticsearch.xpack.ml.job.config.JobState;
import org.elasticsearch.xpack.ml.support.AbstractStreamableTestCase;
public class UpdateJobStatusRequestTests extends AbstractStreamableTestCase<Request> {
public class UpdateJobStateRequestTests extends AbstractStreamableTestCase<Request> {
@Override
protected Request createTestInstance() {

View File

@ -7,9 +7,9 @@ package org.elasticsearch.xpack.ml.datafeed;
import org.elasticsearch.test.ESTestCase;
public class DatafeedStatusTests extends ESTestCase {
public class DatafeedStateTests extends ESTestCase {
public void testForString() {
public void testFromString() {
assertEquals(DatafeedState.fromString("started"), DatafeedState.STARTED);
assertEquals(DatafeedState.fromString("stopped"), DatafeedState.STOPPED);
}

View File

@ -7,9 +7,9 @@ package org.elasticsearch.xpack.ml.job.config;
import org.elasticsearch.test.ESTestCase;
public class JobStatusTests extends ESTestCase {
public class JobStateTests extends ESTestCase {
public void testForString() {
public void testFromString() {
assertEquals(JobState.fromString("closed"), JobState.CLOSED);
assertEquals(JobState.fromString("closing"), JobState.CLOSING);
assertEquals(JobState.fromString("failed"), JobState.FAILED);