|
@@ -1,42 +0,0 @@
|
|
-package com.gyee.common;
|
|
|
|
-
|
|
|
|
-import com.gyee.common.model.algorithm.PointVo;
|
|
|
|
-import com.gyee.common.util.algorithm.LineBuild;
|
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
|
-import org.junit.Ignore;
|
|
|
|
-import org.junit.jupiter.api.Test;
|
|
|
|
-import org.junit.runner.RunWith;
|
|
|
|
-import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
|
|
-import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
|
|
-import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
-import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
-
|
|
|
|
-import java.util.List;
|
|
|
|
-
|
|
|
|
-/**
|
|
|
|
- * @ClassName : CommonMainTest
|
|
|
|
- * @Author : xieshengjie
|
|
|
|
- * @Date: 2021/9/29 17:36
|
|
|
|
- * @Description : 测试
|
|
|
|
- */
|
|
|
|
-@Slf4j
|
|
|
|
-@SpringBootTest
|
|
|
|
-@RunWith(SpringRunner.class)
|
|
|
|
-@Ignore
|
|
|
|
-@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
|
|
|
|
-class CommonMainTest {
|
|
|
|
-// @Resource
|
|
|
|
-// private RedisService redisService;
|
|
|
|
-// @Test
|
|
|
|
-// public void testRedis(){
|
|
|
|
-// String wp = redisService.get("WP");
|
|
|
|
-// }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- @Test
|
|
|
|
- public void test1(){
|
|
|
|
- double[] arrX = {0,0,0,0,1,3,5,7,3,6,5};
|
|
|
|
- double[] arrY = {0,-3,-5,-8,2,3,5,1,6,7,8};
|
|
|
|
- List<PointVo> pointVos = LineBuild.buildLine(arrX, arrY, arrX.length, 20, 0.01);
|
|
|
|
- }
|
|
|
|
-}
|
|
|