RaigorJiang commented on code in PR #25801:
URL: https://github.com/apache/shardingsphere/pull/25801#discussion_r1203497288


##########
features/mask/core/src/test/java/org/apache/shardingsphere/mask/algorithm/replace/LandlineNumberRandomAlgorithmTest.java:
##########
@@ -42,4 +44,16 @@ void assertMask() {
         assertThat(maskAlgorithm.mask("0251234567"), not("0251234567"));
         assertThat(maskAlgorithm.mask("03101234567"), not("03101234567"));
     }
+    
+    @Test
+    void assertInitWhenConfigIsEmpty() {
+        assertThrows(MaskAlgorithmInitializationException.class, () -> 
maskAlgorithm.init(PropertiesBuilder.build()));
+    }
+    
+    @Test
+    void assertMaskWithInvalidConfig() {
+        assertThrows(MaskAlgorithmInitializationException.class,
+                () -> maskAlgorithm.init(PropertiesBuilder.build(new 
Property("landline-numbers", ""))));
+    }
+    

Review Comment:
   Useless blank line.



-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to