aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/ProtocolTest.java
diff options
context:
space:
mode:
authorGavriel Fleischer <flocsy@gmail.com>2019-02-17 03:38:36 +0200
committerGavriel Fleischer <flocsy@gmail.com>2019-02-17 03:50:03 +0200
commit5fe7762b7f17d8d19e86ffb20a3adfc09d700f1a (patch)
treee9ab98a1782118ae03cfa0d980a2109d1e040c91 /test/org/traccar/ProtocolTest.java
parent2a0dff15ead0c5d0cf5865acf500b8ebebe2c8e2 (diff)
downloadtrackermap-server-5fe7762b7f17d8d19e86ffb20a3adfc09d700f1a.tar.gz
trackermap-server-5fe7762b7f17d8d19e86ffb20a3adfc09d700f1a.tar.bz2
trackermap-server-5fe7762b7f17d8d19e86ffb20a3adfc09d700f1a.zip
removed StringEncoder
Diffstat (limited to 'test/org/traccar/ProtocolTest.java')
-rw-r--r--test/org/traccar/ProtocolTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/org/traccar/ProtocolTest.java b/test/org/traccar/ProtocolTest.java
index 181af885d..377474556 100644
--- a/test/org/traccar/ProtocolTest.java
+++ b/test/org/traccar/ProtocolTest.java
@@ -68,6 +68,10 @@ public class ProtocolTest extends BaseTest {
return concatenateStrings(data);
}
+ protected String text(ByteBuf data) {
+ return data.toString(StandardCharsets.ISO_8859_1);
+ }
+
protected ByteBuf buffer(String... data) {
return Unpooled.copiedBuffer(concatenateStrings(data), StandardCharsets.ISO_8859_1);
}