/** * Tests identification of the stop row * @throws Exception */ @Test public void testStopRowIdentification() throws Exception { stopRowTests(mainFilter); }
/** * Tests serialization * @throws Exception */ @Test public void testSerialization() throws Exception { // Decompose mainFilter to bytes. byte[] buffer = mainFilter.toByteArray(); // Recompose mainFilter. Filter newFilter = InclusiveStopFilter.parseFrom(buffer); // Ensure the serialization preserved the filter by running a full test. stopRowTests(newFilter); }
/** * Tests identification of the stop row * @throws Exception */ @Test public void testStopRowIdentification() throws Exception { stopRowTests(mainFilter); }
/** * Tests serialization * @throws Exception */ @Test public void testSerialization() throws Exception { // Decompose mainFilter to bytes. byte[] buffer = mainFilter.toByteArray(); // Recompose mainFilter. Filter newFilter = InclusiveStopFilter.parseFrom(buffer); // Ensure the serialization preserved the filter by running a full test. stopRowTests(newFilter); }