Also rename some *Status*Tests to *State*Tests
Original commit: elastic/x-pack-elasticsearch@6e1d3e2bba
This commit is contained in:
parent
ca4badeb46
commit
2883b00b7c
|
@ -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() {
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
Loading…
Reference in New Issue