Details
-
Sub-task
-
Status: Reopened
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
We should have tests that use both the JONI regex library and the Java regex library. One easy way would be to do the following:
- Pull out the regex related tests from VariableLengthPKIT into a new abstract RegExIT test class
- Derive two concrete class from RegExIT: JoniRegExIT and JavaRegExIT
- Set QueryServices.USE_BYTE_BASED_REGEX_ATTRIB to true in one and false in the other. You'd do this by each having a static doSetup() method like this:
@BeforeClass @Shadower(classBeingShadowed = BaseHBaseManagedTimeIT.class) public static void doSetup() throws Exception { Map<String,String> props = Maps.newHashMapWithExpectedSize(3); props.put(QueryServices.USE_BYTE_BASED_REGEX_ATTRIB, Boolean.toString(true)); setUpTestDriver(new ReadOnlyProps(props.entrySet().iterator())); }