@Test public void setParamsTest() { customTreeStructure.setCategory1(4) .setCategory3(4) .setParams(); assertEquals(1, buffer.getVolatileParams().size()); assertEquals(0, buffer.getPersistentParams().size()); assertEquals(1, buffer.getVolatileParams().get("ptype").getValues().size()); assertEquals("4-0-4", buffer.getVolatileParams().get("ptype").getValues().get(0).execute()); }
@Override void setParams() { tracker.setParam(Hit.HitParam.CustomTreeStructure.stringValue(), String.format(CUSTOM_TREE_FORMAT, category1, category2, category3)); }
CustomTreeStructure extends ScreenInfo { @Override void setParams() { tracker.setParam(Hit.HitParam.CustomTreeStructure.stringValue(), String.format(CUSTOM_TREE_FORMAT, category1, category2, category3)); } }
CustomTreeStructure extends ScreenInfo { @Override void setParams() { tracker.setParam(Hit.HitParam.CustomTreeStructure.stringValue(), String.format(CUSTOM_TREE_FORMAT, category1, category2, category3)); } CustomTreeStructure(Tracker tracker); }
CustomTreeStructure extends ScreenInfo { @Override void setParams() { tracker.setParam(Hit.HitParam.CustomTreeStructure.stringValue(), String.format(CUSTOM_TREE_FORMAT, category1, category2, category3)); } CustomTreeStructure(Tracker tracker); int getCategory1(); int getCategory2(); int getCategory3(); CustomTreeStructure setCategory1(int category1); CustomTreeStructure setCategory2(int category2); CustomTreeStructure setCategory3(int category3); }
CustomTreeStructure extends ScreenInfo { @Override void setParams() { tracker.setParam(Hit.HitParam.CustomTreeStructure.stringValue(), String.format(CUSTOM_TREE_FORMAT, category1, category2, category3)); } CustomTreeStructure(Tracker tracker); int getCategory1(); int getCategory2(); int getCategory3(); CustomTreeStructure setCategory1(int category1); CustomTreeStructure setCategory2(int category2); CustomTreeStructure setCategory3(int category3);  }