@Test public void nothing_registered_get_targets_for_null_throws_illegal_argument_exception() { expected.expect(IllegalArgumentException.class); registryToTest.getTargetsFor(null); }
public List<Target> getTargetsFor(TargetType type){ notNull(type, "given type may not be null!"); List<Target> list = getListFor(type); return Collections.unmodifiableList(list); }
TargetRegistry { public List<Target> getTargetsFor(TargetType type){ notNull(type, "given type may not be null!"); List<Target> list = getListFor(type); return Collections.unmodifiableList(list); } }
TargetRegistry { public List<Target> getTargetsFor(TargetType type){ notNull(type, "given type may not be null!"); List<Target> list = getListFor(type); return Collections.unmodifiableList(list); } TargetRegistry(); }
TargetRegistry { public List<Target> getTargetsFor(TargetType type){ notNull(type, "given type may not be null!"); List<Target> list = getListFor(type); return Collections.unmodifiableList(list); } TargetRegistry(); void register(Target target); TargetRegistryInfo createRegistryInfo(TargetType type); List<Target> getTargetsFor(TargetType type); }
TargetRegistry { public List<Target> getTargetsFor(TargetType type){ notNull(type, "given type may not be null!"); List<Target> list = getListFor(type); return Collections.unmodifiableList(list); } TargetRegistry(); void register(Target target); TargetRegistryInfo createRegistryInfo(TargetType type); List<Target> getTargetsFor(TargetType type);  }