Package com.foundationdb.sql.pg.YamlTester

Examples of com.foundationdb.sql.pg.YamlTester.Regexp


public class YamlTesterRegexpTest {

    @Test(expected=NullPointerException.class)
    public void testConstructorNull() {
  new Regexp(null);
    }
View Full Code Here


  test("\\{abc\\}", "{abc}", true);
  test("\\{123\\}", "{123}", true);
    }

    private static void test(String pattern, Object output, boolean match) {
  boolean result = new Regexp(pattern).compareExpected(output);
  if (result != match) {
      fail("Expected pattern '" + pattern + "' and output '" + output +
     "' to " + (match ? "" : "not ") + "match");
  }
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.sql.pg.YamlTester.Regexp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.