mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 22:25:19 +00:00
(improvement)(headless) Update server and core, server calls core one-way (#592)
* (improvement)(headless) Update server and core, server calls core one-way * (improvement)(Auth) When obtaining the user information, determine whether the user is a system admin. --------- Co-authored-by: jolunoluo
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
package com.tencent.supersonic.chat.mapper.match;
|
||||
|
||||
import com.tencent.supersonic.chat.test.context.ContextTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* MatchStrategyImplTest
|
||||
*/
|
||||
class HanlpDictMatchStrategyTest extends ContextTest {
|
||||
|
||||
@Test
|
||||
void match() {
|
||||
}
|
||||
|
||||
@Test
|
||||
void testMatch() {
|
||||
}
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
package com.tencent.supersonic.chat.test.context;
|
||||
|
||||
import com.tencent.supersonic.chat.persistence.mapper.ChatContextMapper;
|
||||
import com.tencent.supersonic.chat.persistence.repository.impl.ChatContextRepositoryImpl;
|
||||
import com.tencent.supersonic.chat.test.ChatBizLauncher;
|
||||
import com.tencent.supersonic.chat.utils.ComponentFactory;
|
||||
import com.tencent.supersonic.headless.core.service.QueryService;
|
||||
import com.tencent.supersonic.headless.server.service.DimensionService;
|
||||
import com.tencent.supersonic.headless.server.service.MetricService;
|
||||
import com.tencent.supersonic.headless.server.service.ModelService;
|
||||
import com.tencent.supersonic.knowledge.semantic.RemoteSemanticInterpreter;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.test.mock.mockito.MockBean;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
@MockBean(ChatContextRepositoryImpl.class)
|
||||
@MockBean(QueryService.class)
|
||||
@MockBean(DimensionService.class)
|
||||
@MockBean(MetricService.class)
|
||||
@MockBean(ModelService.class)
|
||||
@MockBean(ChatContextMapper.class)
|
||||
@MockBean(RestTemplate.class)
|
||||
@MockBean(RemoteSemanticInterpreter.class)
|
||||
@MockBean(ComponentFactory.class)
|
||||
//@MybatisTest
|
||||
//@AutoConfigureMybatis
|
||||
//@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE)
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = ChatBizLauncher.class)
|
||||
public class ContextTest {
|
||||
|
||||
protected final Logger logger = LoggerFactory.getLogger(ContextTest.class);
|
||||
}
|
||||
Reference in New Issue
Block a user