Class UnPackageNameMapper

  • All Implemented Interfaces:

    public class UnPackageNameMapper
    extends GlobPatternMapper
    Maps dotted package name matches to a directory name. This is the inverse of the package mapper. This is useful for matching XML formatter results against their JUnit test cases.
     <mapper classname=""
             from="${}/TEST-*Test.xml" to="*">
    • Constructor Detail

      • UnPackageNameMapper

        public UnPackageNameMapper()
    • Method Detail

      • extractVariablePart

        protected java.lang.String extractVariablePart​(java.lang.String name)
        Returns the part of the given string that matches the * in the "from" pattern replacing dots with file separators
        extractVariablePart in class GlobPatternMapper
        name - Source filename
        Replaced variable part