private void assertTagIsPlacemark(Element tag,String name,String description,Location location){
  assertEquals(name,getChildTextValue(tag,"name"));
  if (description != null && !description.equals("")) {
    assertEquals(description,getChildTextValue(tag,"description"));
  }
  Element pointTag=getChildElement(tag,"Point");
  String expected=location.getLongitude() + "," + location.getLatitude()+ ","+ location.getAltitude();
  String actual=getChildTextValue(pointTag,"coordinates");
  assertEquals(expected,actual);
}

private void assertTagIsPlacemark ( Element tag , String name , String description , Location location ) { assertEquals ( name , getChildTextValue ( tag , "name" ) ) ; if ( description != null && ! description . equals ( "" ) ) { assertEquals ( description , getChildTextValue ( tag , "description" ) ) ; } Element pointTag = getChildElement ( tag , "Point" ) ; String expected = location . getLongitude ( ) + "," + location . getLatitude ( ) + "," + location . getAltitude ( ) ; String actual = getChildTextValue ( pointTag , "coordinates" ) ; assertEquals ( expected , actual ) ; }
asserts that the given tag is a placemark with the given properties .
