mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 13:07:32 +00:00
(improvement)(test) Fix Checkstyle error (#662)
This commit is contained in:
@@ -39,5 +39,4 @@ public class MockConfiguration {
|
|||||||
when(agentService.getAgent(2)).thenReturn(DataUtils.getTagAgent());
|
when(agentService.getAgent(2)).thenReturn(DataUtils.getTagAgent());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public class MapperTest extends BaseQueryTest {
|
|||||||
QueryReq queryContextReq = DataUtils.getQueryContextReq(10, "艺人周杰伦的播放量");
|
QueryReq queryContextReq = DataUtils.getQueryContextReq(10, "艺人周杰伦的播放量");
|
||||||
queryContextReq.setAgentId(1);
|
queryContextReq.setAgentId(1);
|
||||||
|
|
||||||
QueryResult actualResult = submitNewChat("艺人周杰伦的播放量",1);
|
QueryResult actualResult = submitNewChat("艺人周杰伦的播放量", 1);
|
||||||
|
|
||||||
QueryResult expectedResult = new QueryResult();
|
QueryResult expectedResult = new QueryResult();
|
||||||
SemanticParseInfo expectedParseInfo = new SemanticParseInfo();
|
SemanticParseInfo expectedParseInfo = new SemanticParseInfo();
|
||||||
|
|||||||
@@ -18,11 +18,9 @@ import com.tencent.supersonic.common.pojo.enums.FilterOperatorEnum;
|
|||||||
|
|
||||||
public class DataUtils {
|
public class DataUtils {
|
||||||
|
|
||||||
private static final User user_test = User.getFakeUser();
|
|
||||||
|
|
||||||
public static final Integer metricAgentId = 1;
|
public static final Integer metricAgentId = 1;
|
||||||
public static final Integer tagAgentId = 2;
|
public static final Integer tagAgentId = 2;
|
||||||
|
private static final User user_test = User.getFakeUser();
|
||||||
public static User getUser() {
|
public static User getUser() {
|
||||||
return user_test;
|
return user_test;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user