Search in sources :

Example 1 with BODSentence

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());
}
Also used : BODSentence(net.sf.marineapi.nmea.sentence.BODSentence) FOOSentence(net.sf.marineapi.test.util.FOOSentence) BODSentence(net.sf.marineapi.nmea.sentence.BODSentence) Sentence(net.sf.marineapi.nmea.sentence.Sentence) Test(org.junit.Test)

Aggregations

BODSentence (net.sf.marineapi.nmea.sentence.BODSentence)1 Sentence (net.sf.marineapi.nmea.sentence.Sentence)1 FOOSentence (net.sf.marineapi.test.util.FOOSentence)1 Test (org.junit.Test)1