use of nl.basjes.parse.useragent.debug.UserAgentAnalyzerTester in project yauaa by nielsbasjes.
the class TestYamlBasedExpressions method runIsNullLookupTest.
@Test
void runIsNullLookupTest() {
UserAgentAnalyzerTester uaa = createTester("IsNullLookup.yaml");
uaa.setVerbose(true);
assertTrue(uaa.runTests(false, true));
}
use of nl.basjes.parse.useragent.debug.UserAgentAnalyzerTester in project yauaa by nielsbasjes.
the class TestYamlBasedExpressions method runReplaceStringTest.
@Test
void runReplaceStringTest() {
UserAgentAnalyzerTester uaa = createTester("ReplaceString-tests.yaml");
uaa.setVerbose(true);
assertTrue(uaa.runTests(false, true));
}
use of nl.basjes.parse.useragent.debug.UserAgentAnalyzerTester in project yauaa by nielsbasjes.
the class TestKryoSerialization method deserialize.
UserAgentAnalyzerTester deserialize(byte[] bytes) {
Kryo kryo = new Kryo();
UserAgentAnalyzerTester.configureKryo(kryo);
// Now we KNOW in our code we have a custom CacheInstantiator that needs to be registered too for Kryo.
kryo.register(TestingCacheInstantiator.class);
ByteBufferInput byteBufferInput = new ByteBufferInput(bytes);
return (UserAgentAnalyzerTester) kryo.readClassAndObject(byteBufferInput);
}
Aggregations