chibenwa commented on a change in pull request #487:
URL: https://github.com/apache/james-project/pull/487#discussion_r649680787



##########
File path: core/src/test/java/org/apache/james/core/UsernameTest.java
##########
@@ -148,9 +149,9 @@ void fromUsernameShouldThrowWhenTooLong() {
     }
 
     @Test
-    void fromUsernameShouldThrowWhenMultipleDomainDelimiter() {
-        assertThatThrownBy(() -> Username.of("aa@aa@aa"))
-            .isInstanceOf(IllegalArgumentException.class);
+    void arbitraryCharInLocalPart() {
+        assertThatCode(() -> Username.of("Whatever_I- want3$$$###_! as lons I 
do not give a domain"))
+            .doesNotThrowAnyException();

Review comment:
       Sorry mistake I likely wrote some tests to answer a ML thread while 
running long compilations




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to