Airline Tests

This commit is contained in:
YaFedImYaEatIm
2016-09-18 18:42:15 +12:00
parent 8c656d0672
commit 0adc57fc36
3 changed files with 88 additions and 23 deletions
@@ -264,7 +264,7 @@ public class Airline{
if (this.name.equals(airline.getName())){
throw new DataException("This Airline Name already Exists, Please Choose Another.");
}
if (this.name.equals("")){
if (airline.getName().equals("")){
throw new DataException("This Airline Name cannot be Empty");
}
if (!this.IATA.equals("") && this.IATA.equals(airline.getIATA())){