@Test void shouldFailWhenNameEmpty() { assertThatThrownBy(() -> Rule.builder() .id(UNIQUE_ID) .name("") .condition(CONDITION) .action(ACTION) .build()) .isInstanceOf(IllegalStateException.class); }
public static Builder builder() { return new Builder(); }
Rule { public static Builder builder() { return new Builder(); } }
Rule { public static Builder builder() { return new Builder(); } private  Rule(Id id, String name, Condition condition, Action action); }
Rule { public static Builder builder() { return new Builder(); } private  Rule(Id id, String name, Condition condition, Action action); static Builder builder(); Id getId(); String getName(); Condition getCondition(); Action getAction(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); }
Rule { public static Builder builder() { return new Builder(); } private  Rule(Id id, String name, Condition condition, Action action); static Builder builder(); Id getId(); String getName(); Condition getCondition(); Action getAction(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString();  }