@Test public void testSetListingLocationNullFile() { NullPointerException e = assertThrows(NullPointerException.class, () -> { adder.setListingLocation(null); }); assertThat(e.getMessage()).isEqualTo("Listing location cannot be null."); }
protected void setListingLocation(final File listingLocation) { if (listingLocation == null) throw new NullPointerException("Listing location cannot be null."); this.listingLocation = listingLocation; }
AbstractCompilerAdder { protected void setListingLocation(final File listingLocation) { if (listingLocation == null) throw new NullPointerException("Listing location cannot be null."); this.listingLocation = listingLocation; } }
AbstractCompilerAdder { protected void setListingLocation(final File listingLocation) { if (listingLocation == null) throw new NullPointerException("Listing location cannot be null."); this.listingLocation = listingLocation; }  }
AbstractCompilerAdder { protected void setListingLocation(final File listingLocation) { if (listingLocation == null) throw new NullPointerException("Listing location cannot be null."); this.listingLocation = listingLocation; }   }
AbstractCompilerAdder { protected void setListingLocation(final File listingLocation) { if (listingLocation == null) throw new NullPointerException("Listing location cannot be null."); this.listingLocation = listingLocation; }    }