Convert { public static Operator stringToOperator(String symbol) { Operator operator = OPERATOR_STRINGS.get(symbol); if(operator == null) { throw new IllegalStateException( "Cannot parse " + symbol + " into an operator"); } else { return operator; } } private  Convert(); static List<Multimap<String, Object>> anyJsonToJava(String json); static TObject javaToThrift(Object object); static Multimap<String, Object> jsonToJava(String json); @SuppressWarnings("unchecked") static String mapsToJson(Collection<Multimap<String, Object>> list); static String mapToJson(Map<String, ?> map); static String mapToJson(Multimap<String, Object> map); static String operatorToString(Operator operator); @SuppressWarnings("unchecked") static T possibleThriftToJava(Object tobject); static Object stringToJava(String value); static Operator stringToOperator(String symbol); static String stringToResolvableLinkInstruction(String ccl); @Deprecated static String stringToResolvableLinkSpecification(String key,
            String rawValue); static Object thriftToJava(TObject object); static Object toFunctionOrUnescapedValueIfPossible(Object value);  }
@Test public void testStringToOperator() { String symbol = "="; Assert.assertTrue(Convert.stringToOperator(symbol) instanceof Operator); }
@Test public void testDoubleEqualsStringToOperatorEquals() { String string = "=="; Assert.assertEquals(Convert.stringToOperator(string), Operator.EQUALS); }
@Test public void testStringToOperatorEquals() { String string = "="; Assert.assertEquals(Convert.stringToOperator(string), Operator.EQUALS); }
@Test public void testSymbolToOperatorEquals() { String symbol = "eq"; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.EQUALS); }
@Test public void testStringToOperatorNotEquals() { String symbol = "!="; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.NOT_EQUALS); }
@Test public void testSymbolToOperatorNotEquals() { String symbol = "ne"; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.NOT_EQUALS); }
@Test public void testStringToOperatorGreaterThan() { String symbol = ">"; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.GREATER_THAN); }
@Test public void testSymbolToOperatorGreaterThan() { String symbol = "gt"; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.GREATER_THAN); }
@Test public void testStringToOperatorGreaterThanOrEquals() { String symbol = ">="; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.GREATER_THAN_OR_EQUALS); }
@Test public void testSymbolToOperatorGreaterThanOrEquals() { String symbol = "gte"; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.GREATER_THAN_OR_EQUALS); }
@Test public void testStringToOperatorLessThan() { String symbol = "<"; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.LESS_THAN); }
@Test public void testSymbolToOperatorLessThan() { String symbol = "lt"; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.LESS_THAN); }
@Test public void testStringToOperatorLessThanOrEquals() { String symbol = "<="; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.LESS_THAN_OR_EQUALS); }
@Test public void testSymbolToOperatorLessThanOrEquals() { String symbol = "lte"; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.LESS_THAN_OR_EQUALS); }
@Test public void testStringToOperatorBetween() { String symbol = "><"; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.BETWEEN); }
@Test public void testSymbolToOperatorBetween() { String symbol = "bw"; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.BETWEEN); }
@Test public void testStringToOperatorLinksTo() { String symbol = "->"; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.LINKS_TO); }
@Test public void testSymbolToOperatorLinksTo() { String symbol = "lnk2"; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.LINKS_TO); }
@Test public void testStringLnks2ToOperatorLinksTo() { String symbol = "lnks2"; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.LINKS_TO); }
@Test public void testSymbolToOperatorRegex() { String symbol = "regex"; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.REGEX); }
@Test public void testSymbolToOperatorNotRegex() { String symbol = "nregex"; Assert.assertEquals(Convert.stringToOperator(symbol), Operator.NOT_REGEX); }
@Test public void testConvertStringToOperatorCaseInsensitive() { Assert.assertEquals(Operator.LIKE, Convert.stringToOperator("LIKE")); }