blob: a36481934820d76ad83c4421c38d345784ad41ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package org.traccar.helper;
import org.junit.Assert;
import org.junit.Test;
public class PatternBuilderTest {
@Test
public void testPatternBuilder() {
Assert.assertEquals("\\$GPRMC", new PatternBuilder().txt("$GPRMC").toString());
Assert.assertEquals("(\\d{2}\\.\\p{XDigit}+)", new PatternBuilder().num("(dd.x+)").toString());
}
}
|