Example #1
0
 @Test
 public void testQuotedSet() {
   Matcher m = StatementImpl.SET_STATEMENT.matcher("set \"foo\"\"\" to 1");
   assertTrue(m.matches());
   assertEquals("\"foo\"\"\"", m.group(2));
   m = StatementImpl.SHOW_STATEMENT.matcher("show \"foo\"");
   assertTrue(m.matches());
 }
Example #2
0
 @Test
 public void testSet() {
   Matcher m = StatementImpl.SET_STATEMENT.matcher("set foo to 1");
   assertTrue(m.matches());
 }