@Test public void isPublic_A$String_StringIsNull() throws Exception { String methodSignature = null; boolean actual = AccessModifierDetector.isPublic(methodSignature); boolean expected = false; assertThat(actual, is(equalTo(expected))); }
public static boolean isPublic(String methodSignature) { return methodSignature != null && methodSignature.matches(RegExp.Prefix + "public" + RegExp.Suffix); }
AccessModifierDetector { public static boolean isPublic(String methodSignature) { return methodSignature != null && methodSignature.matches(RegExp.Prefix + "public" + RegExp.Suffix); } }
AccessModifierDetector { public static boolean isPublic(String methodSignature) { return methodSignature != null && methodSignature.matches(RegExp.Prefix + "public" + RegExp.Suffix); } private  AccessModifierDetector(); }
AccessModifierDetector { public static boolean isPublic(String methodSignature) { return methodSignature != null && methodSignature.matches(RegExp.Prefix + "public" + 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 isPublic(String methodSignature) { return methodSignature != null && methodSignature.matches(RegExp.Prefix + "public" + RegExp.Suffix); } private  AccessModifierDetector(); static boolean isPublic(String methodSignature); static boolean isProtected(String methodSignature); static boolean isPackageLocal(String methodSignature); static boolean isPrivate(String methodSignature);  }