@Test public void isJavaLangPackageType_A$String_false() throws Exception { ClassMeta classMeta = null; AvailableTypeDetector target = new AvailableTypeDetector(classMeta); String typeName = "List"; boolean actual = target.isJavaLangPackageType(typeName); boolean expected = false; assertEquals(expected, actual); }
public boolean isJavaLangPackageType(String typeName) { if (typeName == null) { return false; } if (typeName.matches("java\\.lang\\.[^\\.]+$")) { return true; } try { Class.forName("java.lang." + typeName); return true; } catch (Exception e) { } return false; }
AvailableTypeDetector { public boolean isJavaLangPackageType(String typeName) { if (typeName == null) { return false; } if (typeName.matches("java\\.lang\\.[^\\.]+$")) { return true; } try { Class.forName("java.lang." + typeName); return true; } catch (Exception e) { } return false; } }
AvailableTypeDetector { public boolean isJavaLangPackageType(String typeName) { if (typeName == null) { return false; } if (typeName.matches("java\\.lang\\.[^\\.]+$")) { return true; } try { Class.forName("java.lang." + typeName); return true; } catch (Exception e) { } return false; } AvailableTypeDetector(ClassMeta classMeta); }
AvailableTypeDetector { public boolean isJavaLangPackageType(String typeName) { if (typeName == null) { return false; } if (typeName.matches("java\\.lang\\.[^\\.]+$")) { return true; } try { Class.forName("java.lang." + typeName); return true; } catch (Exception e) { } return false; } 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 isJavaLangPackageType(String typeName) { if (typeName == null) { return false; } if (typeName.matches("java\\.lang\\.[^\\.]+$")) { return true; } try { Class.forName("java.lang." + typeName); return true; } catch (Exception e) { } return false; } 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);  }