use of org.bboxdb.tools.converter.tuple.TupleBuilder in project bboxdb by jnidzwetzki.
the class TestTupleBuilder method testSyntheticTupleBuilder.
/**
* Test the syntetic tuple builder
* @throws ParseException
*/
@Test
public void testSyntheticTupleBuilder() throws ParseException {
final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(TupleBuilderFactory.Name.SYNTHETIC);
final Tuple tuple = tupleBuilder.buildTuple("1", SYNTHETIC_TEST_LINE);
Assert.assertTrue(tuple != null);
Assert.assertEquals(Integer.toString(1), tuple.getKey());
final BoundingBox exptectedBox = new BoundingBox(51.47015078569419, 58.26664175357267, 49.11808592466023, 52.72529828070016);
Assert.assertEquals(exptectedBox, tuple.getBoundingBox());
Assert.assertEquals("e1k141dox9rayxo544y9", new String(tuple.getDataBytes()));
}
Aggregations