@@ -0,0 +1,1156 @@
+package work.zhili.springcloud.eureka.service;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0A%0Aimport java.util.LinkedHashMap;%0Aimport java.util.Objects;%0A%0A/**%0A * Title : work.zhili.springcloud.eureka.service %3Cbr%3E%0A * Company : %E5%8C%97%E4%BA%AC%E5%8D%8E%E5%AE%87%E5%85%83%E5%85%B8%E4%BF%A1%E6%81%AF%E6%9C%8D%E5%8A%A1%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8 %3Cbr%3E%0A * Description :%0A *%0A *%0A * @author chile%0A * @version 1.0%0A * @date 2018/8/22 10:07%0A */%0A@RunWith(SpringRunner.class)%0A@SpringBootTest%0Apublic class ComputeClientTests %7B%0A%0A    @Autowired%0A    ComputeClient computeClient;%0A%0A    @Test%0A    public void add() %7B%0A        Object o = computeClient.add(1, 1);%0A        assert Objects.equals(2, ((LinkedHashMap) o).get(%22data%22));%0A        System.out.println(%22add method tests pass.%22);%0A    %7D%0A%0A    @Test%0A    public void divide() %7B%0A        Object o = computeClient.divide(1, 1);%0A        assert Objects.equals(1, ((LinkedHashMap) o).get(%22data%22));%0A%0A        o = computeClient.divide(1, 0);%0A        assert Objects.equals(0, o);%0A%0A        System.out.println(%22divide method tests pass.%22);%0A    %7D%0A%0A%7D%0A

add, divide