@Test public void buildShouldThrowWhenRequiredHitsIsNotGiven() { assertThatThrownBy(() -> SpamAssassinResult.asSpam() .hits("4.0") .build()) .isInstanceOf(NullPointerException.class); }
public static Builder asSpam() { return new Builder(true); }
SpamAssassinResult { public static Builder asSpam() { return new Builder(true); } }
SpamAssassinResult { public static Builder asSpam() { return new Builder(true); } private  SpamAssassinResult(SpamStatus status, String hits, String requiredHits, List<Attribute> headersAsAttributes); }
SpamAssassinResult { public static Builder asSpam() { return new Builder(true); } private  SpamAssassinResult(SpamStatus status, String hits, String requiredHits, List<Attribute> headersAsAttributes); static SpamAssassinResult empty(); static Builder asSpam(); static Builder asHam(); String getHits(); String getRequiredHits(); List<Attribute> getHeadersAsAttributes(); @Override String toString(); }
SpamAssassinResult { public static Builder asSpam() { return new Builder(true); } private  SpamAssassinResult(SpamStatus status, String hits, String requiredHits, List<Attribute> headersAsAttributes); static SpamAssassinResult empty(); static Builder asSpam(); static Builder asHam(); String getHits(); String getRequiredHits(); List<Attribute> getHeadersAsAttributes(); @Override String toString(); static final AttributeName STATUS_MAIL; static final AttributeName FLAG_MAIL; static final String NO_RESULT; }