@Test public void testRuleToJson() { String result = new ExperimentHelper().convertRuleToJson("age > 10"); assertEquals("Value should be eq", "{\"greaterThan\":[{\"attribute\":\"age\"},{\"constant\":10.0}]}", result); }
protected static String convertRuleToJson(String rule) { String decoratedRule = ""; if (rule != null && !rule.isEmpty()) { Rule expRule = new RuleBuilder().parseExpression(rule); decoratedRule = expRule.getJSONRepresentation(); } return decoratedRule; }
ExperimentHelper { protected static String convertRuleToJson(String rule) { String decoratedRule = ""; if (rule != null && !rule.isEmpty()) { Rule expRule = new RuleBuilder().parseExpression(rule); decoratedRule = expRule.getJSONRepresentation(); } return decoratedRule; } }
ExperimentHelper { protected static String convertRuleToJson(String rule) { String decoratedRule = ""; if (rule != null && !rule.isEmpty()) { Rule expRule = new RuleBuilder().parseExpression(rule); decoratedRule = expRule.getJSONRepresentation(); } return decoratedRule; }  }
ExperimentHelper { protected static String convertRuleToJson(String rule) { String decoratedRule = ""; if (rule != null && !rule.isEmpty()) { Rule expRule = new RuleBuilder().parseExpression(rule); decoratedRule = expRule.getJSONRepresentation(); } return decoratedRule; }  static Experiment.ID makeExperimentId(UUID experimentId); static List<UUID> makeUUIDs(
            Collection<Experiment.ID> experimentIDCollection); static Experiment makeExperiment(
            com.intuit.wasabi.repository.cassandra.pojo.Experiment experimentPojo); }
ExperimentHelper { protected static String convertRuleToJson(String rule) { String decoratedRule = ""; if (rule != null && !rule.isEmpty()) { Rule expRule = new RuleBuilder().parseExpression(rule); decoratedRule = expRule.getJSONRepresentation(); } return decoratedRule; }  static Experiment.ID makeExperimentId(UUID experimentId); static List<UUID> makeUUIDs(
            Collection<Experiment.ID> experimentIDCollection); static Experiment makeExperiment(
            com.intuit.wasabi.repository.cassandra.pojo.Experiment experimentPojo);  }