@Test void shouldThrowOnNullNameWhenType() { assertThatThrownBy(() -> Gateway.builder() .nameType(new AddressType("type")) .name(null) .build()) .isInstanceOf(NullPointerException.class); }
public static Builder builder() { return new Builder(); }
Gateway implements Field { public static Builder builder() { return new Builder(); } }
Gateway implements Field { public static Builder builder() { return new Builder(); } private  Gateway(AddressType nameType, Text name); }
Gateway implements Field { public static Builder builder() { return new Builder(); } private  Gateway(AddressType nameType, Text name); static Builder builder(); @Override String formattedValue(); AddressType getNameType(); Text getName(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); }
Gateway implements Field { public static Builder builder() { return new Builder(); } private  Gateway(AddressType nameType, Text name); static Builder builder(); @Override String formattedValue(); AddressType getNameType(); Text getName(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); static final String FIELD_NAME; }