优化单元测试
diff --git a/build.gradle b/build.gradle
index 0b1c3c0..a4cd5b1 100644
--- a/build.gradle
+++ b/build.gradle
@@ -13,11 +13,24 @@
         jcenter()
         mavenCentral()
     }
-    
+}
+
+ext {
+    set('junit_jupiter_version', "5.5.2")
+    set("junit_platform_version", "1.5.2")
+    set("mockitoVersion", "3.1.0")
 }
 
 subprojects {
+    apply plugin: 'java'
     version = '1.0'
+    dependencies {
+        testImplementation("org.junit.jupiter:junit-jupiter-api:${junit_jupiter_version}")
+        testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junit_jupiter_version}")
+        testRuntimeOnly("org.junit.platform:junit-platform-launcher:${junit_platform_version}")
+        testImplementation("io.mockk:mockk:1.9.3")
+        testImplementation("org.hamcrest:hamcrest:2.1")
+    }
 }
 
 bootJar {