|
|
@@ -1,22 +1,27 @@
|
|
|
-package com.tzld.piaoquan.recommend.server.service;
|
|
|
-
|
|
|
-import org.junit.jupiter.api.Test;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.boot.test.context.SpringBootTest;
|
|
|
-
|
|
|
-@SpringBootTest
|
|
|
-public class FeatureServiceTest {
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private FeatureService featureService;
|
|
|
-
|
|
|
- @Test
|
|
|
- public void featureV3OptimizeTest() {
|
|
|
-
|
|
|
- // List<FeatureKeyProto> protos = new ArrayList<>();
|
|
|
- // protos.add(featureService.genWithKeyMap("alg_videoid_feature", "10035427", ImmutableMap.of("videoid", "68781839")));
|
|
|
- //
|
|
|
- // System.out.println(featureService.getFeatureByProto(protos));
|
|
|
- }
|
|
|
-
|
|
|
-}
|
|
|
+// package com.tzld.piaoquan.recommend.server.service;
|
|
|
+//
|
|
|
+// import com.google.common.collect.ImmutableMap;
|
|
|
+// import com.tzld.piaoquan.recommend.feature.model.feature.FeatureKeyProto;
|
|
|
+// import org.junit.jupiter.api.Test;
|
|
|
+// import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+// import org.springframework.boot.test.context.SpringBootTest;
|
|
|
+//
|
|
|
+// import java.util.ArrayList;
|
|
|
+// import java.util.List;
|
|
|
+//
|
|
|
+// @SpringBootTest
|
|
|
+// public class FeatureServiceTest {
|
|
|
+//
|
|
|
+// @Autowired
|
|
|
+// private FeatureService featureService;
|
|
|
+//
|
|
|
+// @Test
|
|
|
+// public void featureV3OptimizeTest() {
|
|
|
+//
|
|
|
+// List<FeatureKeyProto> protos = new ArrayList<>();
|
|
|
+// protos.add(featureService.genWithKeyMap("alg_videoid_feature", "10035427", ImmutableMap.of("videoid", "68781839")));
|
|
|
+//
|
|
|
+// System.out.println(featureService.getFeatureByProto(protos));
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|