@Test public void isArray_A$String_argNull() throws Exception { ClassMeta classMeta = null; AvailableTypeDetector target = new AvailableTypeDetector(classMeta); String typeName = null; boolean actual = target.isArray(typeName); boolean expected = false; assertEquals(expected, actual); }
public boolean isArray(String typeName) { return typeName != null && typeName.matches(".+?\\[\\]$"); }
AvailableTypeDetector { public boolean isArray(String typeName) { return typeName != null && typeName.matches(".+?\\[\\]$"); } }
AvailableTypeDetector { public boolean isArray(String typeName) { return typeName != null && typeName.matches(".+?\\[\\]$"); } AvailableTypeDetector(ClassMeta classMeta); }
AvailableTypeDetector { public boolean isArray(String typeName) { return typeName != null && typeName.matches(".+?\\[\\]$"); } AvailableTypeDetector(ClassMeta classMeta); boolean isPrimitive(String typeName); boolean isArray(String typeName); boolean isJavaLangPackageType(String typeName); boolean isAvailableType(String typeName, Configuration config); boolean isJMockitMockableType(String typeName); }
AvailableTypeDetector { public boolean isArray(String typeName) { return typeName != null && typeName.matches(".+?\\[\\]$"); } AvailableTypeDetector(ClassMeta classMeta); boolean isPrimitive(String typeName); boolean isArray(String typeName); boolean isJavaLangPackageType(String typeName); boolean isAvailableType(String typeName, Configuration config); boolean isJMockitMockableType(String typeName);  }