aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/helper/PatternBuilderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-25 11:06:34 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-25 11:06:34 +1300
commit957740cfb5d74098971a8d4186eda4f9383774d8 (patch)
treed8fb3df0658a9a0ca45ee8a073aca3e82740eb1b /test/org/traccar/helper/PatternBuilderTest.java
parent8fe177bd27196a3924e4ef8e835ba9dac14975c3 (diff)
downloadtrackermap-server-957740cfb5d74098971a8d4186eda4f9383774d8.tar.gz
trackermap-server-957740cfb5d74098971a8d4186eda4f9383774d8.tar.bz2
trackermap-server-957740cfb5d74098971a8d4186eda4f9383774d8.zip
Refactor Totem protocol decoder
Diffstat (limited to 'test/org/traccar/helper/PatternBuilderTest.java')
-rw-r--r--test/org/traccar/helper/PatternBuilderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/helper/PatternBuilderTest.java b/test/org/traccar/helper/PatternBuilderTest.java
index 427161758..10621693e 100644
--- a/test/org/traccar/helper/PatternBuilderTest.java
+++ b/test/org/traccar/helper/PatternBuilderTest.java
@@ -10,6 +10,9 @@ public class PatternBuilderTest {
Assert.assertEquals("\\$GPRMC", new PatternBuilder().text("$GPRMC").toString());
Assert.assertEquals("(\\d{2}\\.\\p{XDigit}+)", new PatternBuilder().number("(dd.x+)").toString());
Assert.assertEquals("a(?:bc)?", new PatternBuilder().text("a").text("b").text("c").optional(2).toString());
+ Assert.assertEquals("a|b", new PatternBuilder().expression("a|b").toString());
+ Assert.assertEquals("ab\\|", new PatternBuilder().expression("ab|").toString());
+ Assert.assertEquals("|", new PatternBuilder().or().toString());
}
}