@Test public void isPrivate_A$String_false() throws Exception { String methodSignature = "void _do(String name) {"; boolean actual = AccessModifierDetector.isPrivate(methodSignature); boolean expected = false; assertEquals(expected, actual); }
public static boolean isPrivate(String methodSignature) { return methodSignature != null && methodSignature.matches(RegExp.Prefix + "private" + RegExp.Suffix); }
AccessModifierDetector { public static boolean isPrivate(String methodSignature) { return methodSignature != null && methodSignature.matches(RegExp.Prefix + "private" + RegExp.Suffix); } }
AccessModifierDetector { public static boolean isPrivate(String methodSignature) { return methodSignature != null && methodSignature.matches(RegExp.Prefix + "private" + RegExp.Suffix); } private  AccessModifierDetector(); }
AccessModifierDetector { public static boolean isPrivate(String methodSignature) { return methodSignature != null && methodSignature.matches(RegExp.Prefix + "private" + RegExp.Suffix); } private  AccessModifierDetector(); static boolean isPublic(String methodSignature); static boolean isProtected(String methodSignature); static boolean isPackageLocal(String methodSignature); static boolean isPrivate(String methodSignature); }
AccessModifierDetector { public static boolean isPrivate(String methodSignature) { return methodSignature != null && methodSignature.matches(RegExp.Prefix + "private" + RegExp.Suffix); } private  AccessModifierDetector(); static boolean isPublic(String methodSignature); static boolean isProtected(String methodSignature); static boolean isPackageLocal(String methodSignature); static boolean isPrivate(String methodSignature);  }