public static final boolean POJAM_ENABLED = false;
+ public static final int EXPERIENCE_POINTS = 2;
+
/**
* Time in months a verification is considered "recent".
*/
int points = 0;
if (rs.next()) {
- points = rs.getInt(1) * 2;
+ points = rs.getInt(1) * EXPERIENCE_POINTS;
}
return points;
int exp = getExperiencePoints();
int points = 10;
- if (exp >= 10) {
+ if (exp >= 5 * EXPERIENCE_POINTS) {
points += 5;
}
- if (exp >= 20) {
+ if (exp >= 10 * EXPERIENCE_POINTS) {
points += 5;
}
- if (exp >= 30) {
+ if (exp >= 15 * EXPERIENCE_POINTS) {
points += 5;
}
- if (exp >= 40) {
+ if (exp >= 20 * EXPERIENCE_POINTS) {
points += 5;
}
- if (exp >= 50) {
+ if (exp >= 25 * EXPERIENCE_POINTS) {
points += 5;
}
int assurancePoints = u.getAssurancePoints();
int expPoints = u.getExperiencePoints();
assertEquals(100, assurancePoints);
- assertEquals(2, expPoints);
+ assertEquals(User.EXPERIENCE_POINTS, expPoints);
assertTrue(u.hasPassedCATS());
assertEquals(10, u.getMaxAssurePoints());
}
// enter entry for second applicant
enterAssuranceWhen(agentID, applicant.getPreferredName().getId(), yesterday);
- assertEquals(agent.getExperiencePoints(), xPoints + 2);
-
+ assertEquals(agent.getExperiencePoints(), xPoints + User.EXPERIENCE_POINTS);
}
}
assertEquals(35, assurer.getMaxAssurePoints());
- assertEquals(2 + 60, assurer.getExperiencePoints());
+ assertEquals(User.EXPERIENCE_POINTS + (30 * User.EXPERIENCE_POINTS), assurer.getExperiencePoints());
}