@Test public void NmeaSentence_EmptyNmeaSentence_VDOPIsNull(){ NmeaSentence nmeaSentence = new NmeaSentence("blahasdfasdf"); assertThat("VDOP null by default", nmeaSentence.getLatestVdop(), nullValue()); }
public String getLatestVdop(){ if (isGSA()) { if (nmeaParts.length > 17 &&!Strings.isNullOrEmpty(nmeaParts[17]) && !nmeaParts[17].startsWith("*")) { return nmeaParts[17].split("\\*")[0]; } } return null; }
NmeaSentence { public String getLatestVdop(){ if (isGSA()) { if (nmeaParts.length > 17 &&!Strings.isNullOrEmpty(nmeaParts[17]) && !nmeaParts[17].startsWith("*")) { return nmeaParts[17].split("\\*")[0]; } } return null; } }
NmeaSentence { public String getLatestVdop(){ if (isGSA()) { if (nmeaParts.length > 17 &&!Strings.isNullOrEmpty(nmeaParts[17]) && !nmeaParts[17].startsWith("*")) { return nmeaParts[17].split("\\*")[0]; } } return null; } NmeaSentence(String nmeaSentence); }
NmeaSentence { public String getLatestVdop(){ if (isGSA()) { if (nmeaParts.length > 17 &&!Strings.isNullOrEmpty(nmeaParts[17]) && !nmeaParts[17].startsWith("*")) { return nmeaParts[17].split("\\*")[0]; } } return null; } NmeaSentence(String nmeaSentence); boolean isLocationSentence(); String getLatestPdop(); String getLatestVdop(); String getLatestHdop(); String getGeoIdHeight(); String getAgeOfDgpsData(); String getDgpsId(); }
NmeaSentence { public String getLatestVdop(){ if (isGSA()) { if (nmeaParts.length > 17 &&!Strings.isNullOrEmpty(nmeaParts[17]) && !nmeaParts[17].startsWith("*")) { return nmeaParts[17].split("\\*")[0]; } } return null; } NmeaSentence(String nmeaSentence); boolean isLocationSentence(); String getLatestPdop(); String getLatestVdop(); String getLatestHdop(); String getGeoIdHeight(); String getAgeOfDgpsData(); String getDgpsId();  }