@Test public void testAddDependency() { final File dependency = mock(File.class); adder.addDependency(dependency); assertThat(adder.getDependencies()).containsOnly(dependency); }
protected void addDependency(final File dependency) { if (dependency == null) throw new NullPointerException("Dependent file cannot be a null reference."); dependencies.add(dependency); }
AbstractCompilerAdder { protected void addDependency(final File dependency) { if (dependency == null) throw new NullPointerException("Dependent file cannot be a null reference."); dependencies.add(dependency); } }
AbstractCompilerAdder { protected void addDependency(final File dependency) { if (dependency == null) throw new NullPointerException("Dependent file cannot be a null reference."); dependencies.add(dependency); }  }
AbstractCompilerAdder { protected void addDependency(final File dependency) { if (dependency == null) throw new NullPointerException("Dependent file cannot be a null reference."); dependencies.add(dependency); }   }
AbstractCompilerAdder { protected void addDependency(final File dependency) { if (dependency == null) throw new NullPointerException("Dependent file cannot be a null reference."); dependencies.add(dependency); }    }