Commit b439ba9e1b4b705467e0ee66f39ba21ea43dfc23

Authored by Ronan
1 parent ad883e10

Modifying Unit test SkillCalcultationGetSet to reset originalValue

skilldr-service/src/test/java/eu/totoandco/business/SkillCalculatorGetSetTest.java
... ... @@ -93,7 +93,7 @@ public class SkillCalculatorGetSetTest {
93 93 final static double BASE_EXPERIENCE = 230.0;
94 94 final static int PERIOD2 = 80;
95 95 double oldBaseExperienceSkill, newBaseExperienceSkill;
96   -
  96 + double originalValue;
97 97 @Before
98 98 public void beforeTest(){
99 99 domain = new Domain("TestDomain");
... ... @@ -114,6 +114,7 @@ public class SkillCalculatorGetSetTest {
114 114 userSkillModel.save(userSkill1);
115 115 userSkill2 = new UserSkill(user, skill2, PERIOD, experienceType);
116 116 userSkillModel.save(userSkill2);
  117 + originalValue = Double.parseDouble(parameterCache.getParameter(ParameterName.BASE_EXPERIENCE_SKILL));
117 118 }
118 119  
119 120 @Test
... ... @@ -171,5 +172,6 @@ public class SkillCalculatorGetSetTest {
171 172 domainModel.remove(domain);
172 173 experienceTypeModel.remove(experienceType);
173 174 experienceTypeModel.remove(experienceType2);
  175 + parameterCache.setParameter(ParameterName.BASE_EXPERIENCE_SKILL, String.valueOf(originalValue));
174 176 }
175 177 }
... ...