Search in sources :

Example 6 with SentenceId

use of net.sf.marineapi.nmea.sentence.SentenceId in project marine-api by ktuukkan.

the class SentenceFactoryTest method testListParsers.

/**
	 * Test method for
	 * {@link net.sf.marineapi.nmea.parser.SentenceFactory#createParser(TalkerId, SentenceId)
	 * .
	 */
@Test
public void testListParsers() {
    List<String> types = instance.listParsers();
    assertEquals(SentenceId.values().length, types.size());
    for (SentenceId id : SentenceId.values()) {
        assertTrue(types.contains(id.name()));
    }
}
Also used : SentenceId(net.sf.marineapi.nmea.sentence.SentenceId) Test(org.junit.Test)

Aggregations

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