@Test public void trimAccessModifierFromMethodSignatureArea_A$String_StringIsEmpty() throws Exception { ConstructorMetaExtractor target = new ConstructorMetaExtractor(config); String methodSignatureArea = ""; String actual = target.trimAccessModifierFromMethodSignatureArea(methodSignatureArea); String expected = ""; assertThat(actual, is(equalTo(expected))); }
String trimAccessModifierFromMethodSignatureArea(String methodSignatureArea) { String regExpForAccessModifier_public = AccessModifierDetector.RegExp.Prefix + "public" + "\\s+"; String regExpForAccessModifier_protected = AccessModifierDetector.RegExp.Prefix + "protected" + "\\s+"; String methodSignatureAreaWithoutAccessModifier = methodSignatureArea.replaceAll(StringValue.Tab, StringValue.Space).replaceAll(regExpForAccessModifier_public, StringValue.Space).replaceAll( regExpForAccessModifier_protected, StringValue.Space).replaceAll("\\sfinal\\s", StringValue.Space); return methodSignatureAreaWithoutAccessModifier; }
ConstructorMetaExtractor { String trimAccessModifierFromMethodSignatureArea(String methodSignatureArea) { String regExpForAccessModifier_public = AccessModifierDetector.RegExp.Prefix + "public" + "\\s+"; String regExpForAccessModifier_protected = AccessModifierDetector.RegExp.Prefix + "protected" + "\\s+"; String methodSignatureAreaWithoutAccessModifier = methodSignatureArea.replaceAll(StringValue.Tab, StringValue.Space).replaceAll(regExpForAccessModifier_public, StringValue.Space).replaceAll( regExpForAccessModifier_protected, StringValue.Space).replaceAll("\\sfinal\\s", StringValue.Space); return methodSignatureAreaWithoutAccessModifier; } }
ConstructorMetaExtractor { String trimAccessModifierFromMethodSignatureArea(String methodSignatureArea) { String regExpForAccessModifier_public = AccessModifierDetector.RegExp.Prefix + "public" + "\\s+"; String regExpForAccessModifier_protected = AccessModifierDetector.RegExp.Prefix + "protected" + "\\s+"; String methodSignatureAreaWithoutAccessModifier = methodSignatureArea.replaceAll(StringValue.Tab, StringValue.Space).replaceAll(regExpForAccessModifier_public, StringValue.Space).replaceAll( regExpForAccessModifier_protected, StringValue.Space).replaceAll("\\sfinal\\s", StringValue.Space); return methodSignatureAreaWithoutAccessModifier; } ConstructorMetaExtractor(Configuration config); }
ConstructorMetaExtractor { String trimAccessModifierFromMethodSignatureArea(String methodSignatureArea) { String regExpForAccessModifier_public = AccessModifierDetector.RegExp.Prefix + "public" + "\\s+"; String regExpForAccessModifier_protected = AccessModifierDetector.RegExp.Prefix + "protected" + "\\s+"; String methodSignatureAreaWithoutAccessModifier = methodSignatureArea.replaceAll(StringValue.Tab, StringValue.Space).replaceAll(regExpForAccessModifier_public, StringValue.Space).replaceAll( regExpForAccessModifier_protected, StringValue.Space).replaceAll("\\sfinal\\s", StringValue.Space); return methodSignatureAreaWithoutAccessModifier; } ConstructorMetaExtractor(Configuration config); ConstructorMetaExtractor initialize(String sourceCodeString); ConstructorMetaExtractor initialize(ClassMeta classMeta, String sourceCodeString); List<ConstructorMeta> extract(String sourceCodeString); }
ConstructorMetaExtractor { String trimAccessModifierFromMethodSignatureArea(String methodSignatureArea) { String regExpForAccessModifier_public = AccessModifierDetector.RegExp.Prefix + "public" + "\\s+"; String regExpForAccessModifier_protected = AccessModifierDetector.RegExp.Prefix + "protected" + "\\s+"; String methodSignatureAreaWithoutAccessModifier = methodSignatureArea.replaceAll(StringValue.Tab, StringValue.Space).replaceAll(regExpForAccessModifier_public, StringValue.Space).replaceAll( regExpForAccessModifier_protected, StringValue.Space).replaceAll("\\sfinal\\s", StringValue.Space); return methodSignatureAreaWithoutAccessModifier; } ConstructorMetaExtractor(Configuration config); ConstructorMetaExtractor initialize(String sourceCodeString); ConstructorMetaExtractor initialize(ClassMeta classMeta, String sourceCodeString); List<ConstructorMeta> extract(String sourceCodeString);  }