DbLicense { public final void setName(final String name) { this.name = name; }  void setDataModelVersion(final String newVersion); String getDataModelVersion(); final String getName(); final void setName(final String name); final String getLongName(); final void setLongName(final String longName); final String getUrl(); final void setUrl(final String url); final String getComments(); final void setComments(final String comments); final String getRegexp(); final void setRegexp(final String regexp); final Boolean isApproved(); final void setApproved(final Boolean approved); @Override boolean equals(Object o); @Override int hashCode(); static final String DATA_MODEL_VERSION; static final String LONG_NAME_DB_FIELD; static final String URL_DB_FIELD; static final String COMMENTS_DB_FIELD; static final String REGEXP_DB_FIELD; static final String APPROVED_DB_FIELD; }
@Test public void testAddNullNamedLicense() { DbLicense lic = new DbLicense(); lic.setName(null); sut.addLicense(lic); assertEquals(0, sut.getLicenses().size()); }