@Test void shouldThrowOnNameWithLineBreak() { String userAgentName = "a\nb"; assertThatThrownBy(() -> ReportingUserAgent.builder() .userAgentName(userAgentName) .build()) .isInstanceOf(IllegalStateException.class); }
public static Builder builder() { return new Builder(); }
ReportingUserAgent implements Field { public static Builder builder() { return new Builder(); } }
ReportingUserAgent implements Field { public static Builder builder() { return new Builder(); } private  ReportingUserAgent(String userAgentName, Optional<String> userAgentProduct); }
ReportingUserAgent implements Field { public static Builder builder() { return new Builder(); } private  ReportingUserAgent(String userAgentName, Optional<String> userAgentProduct); static Builder builder(); String getUserAgentName(); Optional<String> getUserAgentProduct(); @Override String formattedValue(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); }
ReportingUserAgent implements Field { public static Builder builder() { return new Builder(); } private  ReportingUserAgent(String userAgentName, Optional<String> userAgentProduct); static Builder builder(); String getUserAgentName(); Optional<String> getUserAgentProduct(); @Override String formattedValue(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); static final Predicate<String> IS_EMPTY; }