Skip to content

The Unified and Autonomous Development Platform

test: add non-english word commit message check

Robin Shen9dccbb8e98ba
diff --git a/server-core/src/test/java/io/onedev/server/model/support/code/BranchProtectionTest.java b/server-core/src/test/java/io/onedev/server/model/support/code/BranchProtectionTest.java
index 46490cb754..08c76c0972 100644
--- a/server-core/src/test/java/io/onedev/server/model/support/code/BranchProtectionTest.java
+++ b/server-core/src/test/java/io/onedev/server/model/support/code/BranchProtectionTest.java
@@ -22,6 +22,7 @@ public class BranchProtectionTest {
assertNull(branchProtection.checkCommitMessage("feat ( docs , api ) ! :hello world", false));
assertNull(branchProtection.checkCommitMessage("feat:hello world\n\nbody", false));
assertNull(branchProtection.checkCommitMessage("hello world", true));
+ assertNull(branchProtection.checkCommitMessage("fix(ä): ö", true));
assertNotNull(branchProtection.checkCommitMessage("feat ( docs/api ) ! hello world", false));
assertNotNull(branchProtection.checkCommitMessage("unknown ( docs/api ) ! : hello world", false));
assertNotNull(branchProtection.checkCommitMessage("feat ( docs unknown ) ! : hello world", false));