Package ucar.unidata.util.test
Class UnitTestCommon.ModDelete
- java.lang.Object
-
- ucar.unidata.util.test.UnitTestCommon.ModDelete
-
- All Implemented Interfaces:
UnitTestCommon.Modifier
- Enclosing class:
- UnitTestCommon
public static class UnitTestCommon.ModDelete extends Object implements UnitTestCommon.Modifier
Instance of Modifier specialized to delete lines matching a given Java regular expression of text before is is passed to compare(). A Line is defined by text.split("[\n]").
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.re2j.Pattern
pattern
-
-
-
Constructor Detail
-
ModDelete
public ModDelete(String regexp)
-
-
Method Detail
-
modify
public String modify(String text)
- Specified by:
modify
in interfaceUnitTestCommon.Modifier
-
-