diff --git a/java_console/models/src/com/rusefi/core/test/EngineStateTest.java b/java_console/models/src/com/rusefi/core/test/EngineStateTest.java index fded51aa31..c8f969d82d 100644 --- a/java_console/models/src/com/rusefi/core/test/EngineStateTest.java +++ b/java_console/models/src/com/rusefi/core/test/EngineStateTest.java @@ -3,6 +3,7 @@ package com.rusefi.core.test; import com.rusefi.core.SensorCentral; import com.rusefi.core.EngineState; import com.rusefi.io.LinkDecoder; +import org.junit.Ignore; import org.junit.Test; import java.util.concurrent.atomic.AtomicInteger; @@ -29,20 +30,4 @@ public class EngineStateTest { assertFalse(EngineState.startWithIgnoreCase("HELLO", "hellllll")); assertFalse(EngineState.startWithIgnoreCase("HELLO", "ha")); } - - @Test - public void testRpm() { - final AtomicInteger rpmResult = new AtomicInteger(); - EngineState es = new EngineState(new EngineState.EngineStateListenerImpl() { - public void onKeyValue(String key, String value) { - if ("rpm".equals(key)) - rpmResult.set(Integer.parseInt(value)); - } - }); - es.processNewData("line:7:", LinkDecoder.TEXT_PROTOCOL_DECODER); - es.processNewData(SensorCentral.RPM_KEY + SEPARATOR, LinkDecoder.TEXT_PROTOCOL_DECODER); - assertEquals(0, rpmResult.get()); - es.processNewData("600\r", LinkDecoder.TEXT_PROTOCOL_DECODER); - assertEquals(600, rpmResult.get()); - } }