Search in sources :

Example 1 with State

use of org.apache.kafka.connect.runtime.AbstractStatus.State in project kafka by apache.

the class StateTrackerTest method currentState.

@Test
public void currentState() {
    for (State state : State.values()) {
        tracker.changeState(state, time.milliseconds());
        assertEquals(state, tracker.currentState());
    }
}
Also used : State(org.apache.kafka.connect.runtime.AbstractStatus.State) Test(org.junit.Test)

Example 2 with State

use of org.apache.kafka.connect.runtime.AbstractStatus.State in project apache-kafka-on-k8s by banzaicloud.

the class StateTrackerTest method currentState.

@Test
public void currentState() {
    for (State state : State.values()) {
        tracker.changeState(state, time.milliseconds());
        assertEquals(state, tracker.currentState());
    }
}
Also used : State(org.apache.kafka.connect.runtime.AbstractStatus.State) Test(org.junit.Test)

Aggregations

State (org.apache.kafka.connect.runtime.AbstractStatus.State)2 Test (org.junit.Test)2