ResponseContentParser { public static String extractCondition(String conditionStr) { if (conditionStr.length() > 1 && conditionStr.charAt(0) == '=' && conditionStr.charAt(1) != '=') { return "="; } return Arrays.stream(ValidationType.values()).filter(type -> conditionStr.startsWith(type.getValue())).findFirst().map(ValidationType::getValue).orElse(""); }  static String extractOperator(RequestData data); static String extractValidateValue(String value); static String extractCondition(String conditionStr);  }
@Test public void testExtractCondition_1() throws Exception { String conditionStr = ""; String result = ResponseContentParser.extractCondition(conditionStr); assertNotNull(result); }
@Test public void testExtractCondition_2() throws Exception { String conditionStr = "aaa"; String result = ResponseContentParser.extractCondition(conditionStr); assertNotNull(result); }
@Test public void testExtractCondition_3() throws Exception { String conditionStr = "aa"; String result = ResponseContentParser.extractCondition(conditionStr); assertNotNull(result); }
@Test public void testExtractCondition_4() throws Exception { String conditionStr = "aaa"; String result = ResponseContentParser.extractCondition(conditionStr); assertNotNull(result); }