auto-sync
This commit is contained in:
parent
6e54c9d632
commit
3569f7df74
|
@ -87,7 +87,7 @@ public class LinkManager {
|
|||
connector.send(encodeCommand(command));
|
||||
}
|
||||
|
||||
private static String encodeCommand(String command) {
|
||||
public static String encodeCommand(String command) {
|
||||
return "sec!" + command.length() + "!" + command;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
package com.rusefi.io.test;
|
||||
|
||||
import com.rusefi.io.LinkManager;
|
||||
import org.junit.Test;
|
||||
import junit.framework.Assert;
|
||||
|
||||
/**
|
||||
* @author Andrey Belomutskiy
|
||||
|
@ -9,6 +11,7 @@ import org.junit.Test;
|
|||
public class LinkManagerTest {
|
||||
@Test
|
||||
public void testEncoding() {
|
||||
Assert.assertEquals("sec!7!rpm 400", LinkManager.encodeCommand("rpm 400"));
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue