π
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AppointmentTest { | |
@Test | |
void testAppointmentDate_WRONG() { | |
final Appointment appt = new Appointment("1", "Appt 1", new Date()); | |
// β This will fail!!! | |
assertEquals(new Date(), appt.appointmentDate()); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.snhu.cs320.appointment; | |
import java.time.LocalDate; | |
import org.snhu.cs320.exceptions.ValidationException; | |
import org.snhu.cs320.validation.Validation; | |
public class Appointment { | |
private String id; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.snhu.cs320.contact; | |
import java.util.Map; | |
import java.util.concurrent.ConcurrentHashMap; | |
import org.snhu.cs320.exceptions.ValidationException; | |
public class ContactService { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.snhu.cs320.contact; | |
import org.snhu.cs320.exceptions.ValidationException; | |
import org.snhu.cs320.validation.Validation; | |
public class Contact { | |
private String id; | |
private String firstName; | |
private String lastName; |