protected void assertProfile(String name, int dependencySize, String[] dependencyNames) { Profile profile = profileMap.get(name); assertNotNull("Null profile: " + name, profile); assertNotNull("Null dependencies for profile: " + name, profile.getSubProfiles()); assertDependenciesSize(dependencySize, profile); assertDependencies(dependencyNames, profile.getSubProfiles()); }
protected void assertDependenciesSize(int size, Profile profile) { assertEquals( "dependency size for profile: " + profile.getKey(), size, profile.getSubProfiles().size()); }