@Test(expected = IllegalArgumentException.class) public void cantUseNullDocumentBuilderFactoryInSetter() { DOMDifferenceEngine d = new DOMDifferenceEngine(); d.setDocumentBuilderFactory(null); }
public void setDocumentBuilderFactory(DocumentBuilderFactory f) { if (f == null) { throw new IllegalArgumentException("factory must not be null"); } documentBuilderFactory = f; }
DOMDifferenceEngine extends AbstractDifferenceEngine { public void setDocumentBuilderFactory(DocumentBuilderFactory f) { if (f == null) { throw new IllegalArgumentException("factory must not be null"); } documentBuilderFactory = f; } }
DOMDifferenceEngine extends AbstractDifferenceEngine { public void setDocumentBuilderFactory(DocumentBuilderFactory f) { if (f == null) { throw new IllegalArgumentException("factory must not be null"); } documentBuilderFactory = f; } DOMDifferenceEngine();  DOMDifferenceEngine(final DocumentBuilderFactory f); }
DOMDifferenceEngine extends AbstractDifferenceEngine { public void setDocumentBuilderFactory(DocumentBuilderFactory f) { if (f == null) { throw new IllegalArgumentException("factory must not be null"); } documentBuilderFactory = f; } DOMDifferenceEngine();  DOMDifferenceEngine(final DocumentBuilderFactory f); void setDocumentBuilderFactory(DocumentBuilderFactory f); @Override void compare(Source control, Source test); }
DOMDifferenceEngine extends AbstractDifferenceEngine { public void setDocumentBuilderFactory(DocumentBuilderFactory f) { if (f == null) { throw new IllegalArgumentException("factory must not be null"); } documentBuilderFactory = f; } DOMDifferenceEngine();  DOMDifferenceEngine(final DocumentBuilderFactory f); void setDocumentBuilderFactory(DocumentBuilderFactory f); @Override void compare(Source control, Source test);  }