use of net.sf.marineapi.nmea.sentence.BODSentence in project marine-api by ktuukkan.
the class SentenceFactoryTest method testCreateParser.
/**
* Test method for
* {@link net.sf.marineapi.nmea.parser.SentenceFactory#createParser(java.lang.String)}
* .
*/
@Test
public void testCreateParser() {
Sentence bod = instance.createParser(BODTest.EXAMPLE);
assertNotNull(bod);
assertTrue(bod instanceof Sentence);
assertTrue(bod instanceof BODSentence);
assertTrue(bod instanceof BODParser);
assertEquals(BODTest.EXAMPLE, bod.toSentence());
}
Aggregations