aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseym45 <seym45@gmail.com>2023-07-26 03:02:34 +0400
committerseym45 <seym45@gmail.com>2023-07-26 03:02:34 +0400
commit6ac15f2c6fb8798c6906c24e97b0048736270215 (patch)
treea338abacc68fd91b582c1d57daee05558c48f878
parent8c227973608eee7ba5519f22c5781f912dd4e9b5 (diff)
downloadtrackermap-server-6ac15f2c6fb8798c6906c24e97b0048736270215.tar.gz
trackermap-server-6ac15f2c6fb8798c6906c24e97b0048736270215.tar.bz2
trackermap-server-6ac15f2c6fb8798c6906c24e97b0048736270215.zip
Format code structure
-rw-r--r--src/main/java/org/traccar/protocol/GatorProtocol.java4
-rw-r--r--src/test/java/org/traccar/protocol/GatorProtocolEncoderTest.java2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/protocol/GatorProtocol.java b/src/main/java/org/traccar/protocol/GatorProtocol.java
index bb0e017f4..46862f583 100644
--- a/src/main/java/org/traccar/protocol/GatorProtocol.java
+++ b/src/main/java/org/traccar/protocol/GatorProtocol.java
@@ -28,9 +28,7 @@ public class GatorProtocol extends BaseProtocol {
@Inject
public GatorProtocol(Config config) {
- setSupportedDataCommands(
- Command.TYPE_POSITION_SINGLE
- );
+ setSupportedDataCommands(Command.TYPE_POSITION_SINGLE);
addServer(new TrackerServer(config, getName(), false) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline, Config config) {
diff --git a/src/test/java/org/traccar/protocol/GatorProtocolEncoderTest.java b/src/test/java/org/traccar/protocol/GatorProtocolEncoderTest.java
index 04fce0ac8..a3bc3af2b 100644
--- a/src/test/java/org/traccar/protocol/GatorProtocolEncoderTest.java
+++ b/src/test/java/org/traccar/protocol/GatorProtocolEncoderTest.java
@@ -9,7 +9,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
public class GatorProtocolEncoderTest extends ProtocolTest {
@Test
- void encodeId() throws Exception {
+ void testEncodeId() throws Exception {
var encoder = inject(new GatorProtocolEncoder(null));
assertEquals("2008958C", encoder.encodeId(13332082112L));
}