Netter99 commented on code in PR #25036:
URL: https://github.com/apache/shardingsphere/pull/25036#discussion_r1160447553


##########
kernel/traffic/core/src/test/java/org/apache/shardingsphere/traffic/algorithm/traffic/segment/SQLRegexTrafficAlgorithmTest.java:
##########
@@ -59,4 +60,10 @@ void assertMatchWhenNotExistSQLRegexMatch() {
         assertFalse(sqlRegexAlgorithm.match(new 
SegmentTrafficValue(sqlStatement, "TRUNCATE TABLE `t_order` ")));
         assertFalse(sqlRegexAlgorithm.match(new 
SegmentTrafficValue(sqlStatement, "UPDATE `t_order` SET `order_id` = ?;")));
     }
+
+    @Test
+    void assertThrowExceptionWhenWithIllegalInit() {
+        assertThrows(IllegalArgumentException.class, () -> sqlRegexAlgorithm = 
(SQLRegexTrafficAlgorithm) TypedSPILoader.getService(TrafficAlgorithm.class, 
"SQL_REGEX",

Review Comment:
   I have made some changes



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