@Test public void NmeaSentence_WhenGNSS_IsValidSentence(){ NmeaSentence nmeaSentence = new NmeaSentence("$GNGGA,095556.857,3454.932,N,07502.500,W,0,00,0.3,,M,,M,,*69"); assertThat("GNSS GNGGA is a valid sentence", nmeaSentence.isLocationSentence(), is(true)); }
public boolean isLocationSentence(){ return isGSA() || isGGA(); }
NmeaSentence { public boolean isLocationSentence(){ return isGSA() || isGGA(); } }
NmeaSentence { public boolean isLocationSentence(){ return isGSA() || isGGA(); } NmeaSentence(String nmeaSentence); }
NmeaSentence { public boolean isLocationSentence(){ return isGSA() || isGGA(); } NmeaSentence(String nmeaSentence); boolean isLocationSentence(); String getLatestPdop(); String getLatestVdop(); String getLatestHdop(); String getGeoIdHeight(); String getAgeOfDgpsData(); String getDgpsId(); }
NmeaSentence { public boolean isLocationSentence(){ return isGSA() || isGGA(); } NmeaSentence(String nmeaSentence); boolean isLocationSentence(); String getLatestPdop(); String getLatestVdop(); String getLatestHdop(); String getGeoIdHeight(); String getAgeOfDgpsData(); String getDgpsId();  }