Word | Meaning | |
---|---|---|
🚙 | Unit | The unit of code (e.g., a class) being tested -- examples may be Car, Employee, City, Student, Instructor, Course, ... (whatever your modeling domain subject is) |
🚙 | Model | Another name for unit |
💡 | Unit Test | A class that contains tests that test the unit -- generally named CarTest, EmployeeTest, etc |
  | ||
💥 | Showstopper Bug | A bug that prevents a program from starting/running or stops it from functioning (program crash) |
🐞 | Functional Bug | A bug that causes a program has behavior/results that does not match the expected behavior (relative to the program functional requirements) |
🐞 | Defect | Another name for bug |
/** Returns new City object with passed lat and long values */ public static City fromNameLatLong(String name, double lat, double lon) /** Returns new City object with name "Unnamed" and location (0, 0) */ public static City newInstance() /** Returns nice display string for this City */ public String toString()
/** * Conduct a smoke test for the construction of * a City with no args */ public void test_newInstance() { prn("\n-- test_newInstance --");1City city = City.newInstance();2prn(city.toString()); }
/** * Conduct a smoke test for the construction of * a City with no args */ public void test_newInstance() { prn("\n-- test_newInstance --"); City city = City.newInstance(); prn(city.toString()); } /** * Conduct a smoke test for the construction of * a City with passed name and location */ public void test_fromNameLatLong() { prn("\n-- test_fromNameLatLong --"); City city = City.fromNameLatLong("Brooklyn Center", 45.076076, -93.332728); prn(city.toString()); }