Aisle extends ScreenInfo { @Override void setParams() { String value = level1; if (value == null) { value = level2; } else { value += (level2 == null) ? "" : ("::" + level2); } if (value == null) { value = level3; } else { value += (level3 == null) ? "" : ("::" + level3); } if (value == null) { value = level4; } else { value += (level4 == null) ? "" : ("::" + level4); } if (value == null) { value = level5; } else { value += (level5 == null) ? "" : ("::" + level5); } if (value == null) { value = level6; } else { value += (level6 == null) ? "" : ("::" + level6); } tracker.setParam(Hit.HitParam.Aisle.stringValue(), value, new ParamOption().setEncode(true)); } Aisle(Tracker tracker); String getLevel1(); String getLevel2(); String getLevel3(); String getLevel4(); String getLevel5(); String getLevel6(); Aisle setLevel1(String level1); Aisle setLevel2(String level2); Aisle setLevel3(String level3); Aisle setLevel4(String level4); Aisle setLevel5(String level5); Aisle setLevel6(String level6);  }
@Test public void setParamsTest() { aisle.setLevel1("level1").setLevel2("level2").setLevel4("level4").setParams(); assertEquals(1, buffer.getVolatileParams().size()); assertEquals(0, buffer.getPersistentParams().size()); assertEquals(1, buffer.getVolatileParams().get("aisl").getValues().size()); assertEquals("level1::level2::level4", buffer.getVolatileParams().get("aisl").getValues().get(0).execute()); }