@Test public void testCreateArchitectureEmptyGraph() { DependencyGraph dependencyGraph = DependencyGraphFactory.createGraph(); Architecture architecture = new DefaultPackageArchitectureFactory(dependencyGraph).createArchitecture(); assertThat(architecture.getName(), is("Package")); assertThat(architecture.getAllComponents(), hasSize(0)); }
public Architecture createArchitecture() { return createArchitecture(0); }
DefaultPackageArchitectureFactory { public Architecture createArchitecture() { return createArchitecture(0); } }
DefaultPackageArchitectureFactory { public Architecture createArchitecture() { return createArchitecture(0); } DefaultPackageArchitectureFactory(DependencyGraph dependencyGraph); }
DefaultPackageArchitectureFactory { public Architecture createArchitecture() { return createArchitecture(0); } DefaultPackageArchitectureFactory(DependencyGraph dependencyGraph); void setArchitectureName(String architectureName); void setPathSeparator(String separator); Architecture createArchitecture(); Architecture createArchitecture(int maxLength); }
DefaultPackageArchitectureFactory { public Architecture createArchitecture() { return createArchitecture(0); } DefaultPackageArchitectureFactory(DependencyGraph dependencyGraph); void setArchitectureName(String architectureName); void setPathSeparator(String separator); Architecture createArchitecture(); Architecture createArchitecture(int maxLength);  }