public class TutorMatcherTest extends Object
Constructor and Description |
---|
TutorMatcherTest() |
Modifier and Type | Method and Description |
---|---|
static void |
setUpTutors() |
void |
testEmptyQuery()
Tests result structure.
|
void |
testOnlyDorm()
Tests if the algorithm handles sorting by dorm if subject and duty day
are null.
|
void |
testOnlyDutyDay()
Tests if the algorithm handles duty nights correctly.
|
void |
testOnlySubject()
Tests if subject matches.
|
void |
testSubjectAndDorm()
Tests if the algorithm takes into consideration of subject and physical
proximity.
|
void |
testSubjectAndDormAndDutyNight()
Tests subject, dorm and duty night.
|
public static final void setUpTutors()
public final void testEmptyQuery()
If an empty query was given, the entire list of tutors should be returned.
public final void testOnlySubject()
Sees if there are any extraneous output if we ask for only Chemistry tutors.
public final void testOnlyDorm()
In this case your method should return all the tutors, regardless of their dorms or duty nights, and compute score based on distance.
public final void testOnlyDutyDay()
Duty nights must match exactly.
public final void testSubjectAndDorm()
public final void testSubjectAndDormAndDutyNight()