/** Check output with value of mapConditionLevel is null. Expected: return data is null */
 @Test
 public void getLevelTest10() {
   // set value of mapConditionLevel is null
   mapConditionLevel = null;
   // get data of function getLevel
   assertNull(policy.getLevel(condition, mapConditionLevel));
 }
 /**
  * Check output with two variable is condition and mapConditionLevel; data type is Store and level
  * of the condition is High value of condition exists in mapConditionLevel. Expected: level of
  * condition is High
  */
 @Test
 public void getLevelTest01() {
   // set data typed is store
   mapConditionLevel = mapConditionLevelStore;
   // get data of function getLevel
   tmpResultActual = (Integer) policy.getLevel(condition, mapConditionLevel);
   assertTrue(tmpResultActual == 3);
 }
 /**
  * Check output with two variable is condition and mapConditionLevel, data type is Store and value
  * of condition not exists in mapConditionLevel. Expected: return data is null
  */
 @Test
 public void getLevelTest14() {
   // set data typed is store
   mapConditionLevel = mapConditionLevelStore;
   // set value of condition for test
   condition = "(data.UsedPct >= 95)";
   // get data of function getLevel
   assertNull(policy.getLevel(condition, mapConditionLevel));
 }
 /** Check output with value of condition is null. Expected: return data is null */
 @Test
 public void getLevelTest08() {
   // set data typed is store
   mapConditionLevel = mapConditionLevelStore;
   // set value of condition is null
   condition = null;
   // get data of function getLevel
   assertNull(policy.getLevel(condition, mapConditionLevel));
 }
 /**
  * Check output with two variable is condition and mapConditionLevel; data type is Store and level
  * of the condition is Low value of condition exists in mapConditionLevel. Expected: level of
  * condition is Low
  */
 @Test
 public void getLevelTest03() {
   // set data typed is store
   mapConditionLevel = mapConditionLevelStore;
   // set value of condition for test
   condition = "(data.MaxUsedPct > 80) && (data.MaxUsedPct < 90)";
   // get data of function getLevel
   tmpResultActual = (Integer) policy.getLevel(condition, mapConditionLevel);
   assertTrue(tmpResultActual == 1);
 }
 /**
  * Check output with three variable is condition, mapConditionLevel and group; data type is
  * Subtyped and value of condition not exists in mapConditionLevel. Expected: return data is null
  */
 @Test
 public void getLevelTest15() throws Exception {
   // set data typed is subtyped
   mapConditionLevel = mapConditionLevelSubtyped;
   // set value of condition for test
   condition = "(data.UsedPct == 10)";
   // set value of group
   group = "D";
   // get data of function getLevel
   assertNull(policy.getLevel(condition, mapConditionLevel, group));
 }
 /** Check output with value of group is not D or M Expected: return data is null */
 @Test
 public void getLevelTest13() {
   // set data typed is subtyped
   mapConditionLevel = mapConditionLevelSubtyped;
   // set value of condition for test
   condition = "(data.UsedPct >= 95)";
   // set value of group
   group = "E";
   // get data of function getLevel
   assertNull(policy.getLevel(condition, mapConditionLevel, group));
 }
 /**
  * Check output with value of a group in mapConditionLevel is empty, data type is Subtyped and
  * value of condition not exists in group. Expected: return data is null
  */
 @Test
 public void getLevelTest12() {
   // set value of group D is empty
   mapConditionLevelSubtyped.put("D", new LinkedHashMap<String, String>());
   // set value of condition for test
   condition = "(data.UsedPct == 10)";
   // set value of group
   group = "D";
   // get data of function getLevel
   assertNull(policy.getLevel(condition, mapConditionLevelSubtyped, group));
 }
 /**
  * Check output with three variable is condition, mapConditionLevel and group; data type is
  * Subtyped and level of the condition is Low value of condition exists in mapConditionLevel.
  * Expected: level of condition is Low
  */
 @Test
 public void getLevelTest06() {
   // set data typed is subtyped
   mapConditionLevel = mapConditionLevelSubtyped;
   // set value of condition for test
   condition = "(data.UsedPct >= 95)";
   // set value of group
   group = "M";
   // get data of function getLevel
   tmpResultActual = (Integer) policy.getLevel(condition, mapConditionLevel, group);
   assertTrue(tmpResultActual == 1);
 }
 /** Check output with value of mapConditionLevel is empty. Expected: return data is null */
 @Test
 public void getLevelTest09() {
   // get data of function getLevel
   assertNull(policy.getLevel(condition, mapConditionLevel));
 }