init
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package com.eactive.eai.rms.data;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Configuration
|
||||
public class EMSJPATestConfiguration {
|
||||
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
package com.eactive.eai.rms.data.entity.onl.adapter;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.autoconfigure.domain.EntityScan;
|
||||
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
|
||||
import org.springframework.boot.test.mock.mockito.MockBean;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
import com.eactive.eai.data.jpa.BaseRepositoryImpl;
|
||||
import com.eactive.eai.rms.data.entity.onl.bzwkdstcd.UserBusinessService;
|
||||
|
||||
@DataJpaTest
|
||||
@ContextConfiguration(classes = { AdapterGroupServiceTest.class })
|
||||
@ComponentScan({ "com.eactive.eai.rms.data.entity.onl.adapter" })
|
||||
@EnableJpaRepositories(repositoryBaseClass = BaseRepositoryImpl.class, basePackages = {
|
||||
"com.eactive.eai.rms.data.entity.onl.adapter" })
|
||||
@EntityScan({ "com.eactive.eai.rms.data.entity.onl.adapter", "com.eactive.eai.data.entity.onl.adapter" })
|
||||
class AdapterGroupServiceTest {
|
||||
|
||||
@Autowired
|
||||
AdapterGroupService adapterGroupService;
|
||||
|
||||
@MockBean
|
||||
UserBusinessService userBusinessService;
|
||||
|
||||
@Test
|
||||
void testFindAdptrBzwkGroupNamesByPort() {
|
||||
try {
|
||||
adapterGroupService.findAdptrBzwkGroupNamesByPort(null, null);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
package com.eactive.eai.rms.data.entity.onl.logger;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.autoconfigure.domain.EntityScan;
|
||||
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
import com.eactive.eai.data.entity.onl.logger.SubMessageLog02;
|
||||
import com.eactive.eai.data.entity.onl.logger.SubMessageLogId;
|
||||
import com.eactive.eai.data.jpa.BaseRepositoryImpl;
|
||||
|
||||
@DataJpaTest
|
||||
@ComponentScan("com.eactive.eai.rms.data.entity.onl.logger")
|
||||
@EntityScan("com.eactive.eai.data.entity.onl.logger")
|
||||
@ContextConfiguration(classes = SubMessageLogRepositoryImplTest.class)
|
||||
@EnableJpaRepositories(repositoryBaseClass = BaseRepositoryImpl.class, basePackages = {
|
||||
"com.eactive.eai.rms.data.entity.onl.logger" })
|
||||
class SubMessageLogRepositoryImplTest {
|
||||
|
||||
@Autowired
|
||||
SubMessageLogRepository subMessageLogRepository;
|
||||
|
||||
@Test
|
||||
void testFindAll() {
|
||||
|
||||
subMessageLogRepository.getById(SubMessageLog02.class, new SubMessageLogId("1", "2"));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.eactive.eai.rms.data.entity.onl.transform;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.mockito.Mock;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.autoconfigure.domain.EntityScan;
|
||||
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
import com.eactive.eai.data.jpa.BaseRepositoryImpl;
|
||||
import com.eactive.eai.rms.common.login.LoginVo;
|
||||
import com.eactive.eai.rms.common.login.SessionManager;
|
||||
|
||||
@DataJpaTest
|
||||
@ContextConfiguration(classes = { TransformServiceTestConfig.class })
|
||||
@ComponentScan({ "com.eactive.eai.data.entity.onl.message", "com.eactive.eai.rms.data.entity.onl.transform" })
|
||||
@EnableJpaRepositories(repositoryBaseClass = BaseRepositoryImpl.class, basePackages = {
|
||||
"com.eactive.eai.data.entity.onl.message", "com.eactive.eai.rms.data.entity.onl.transform" })
|
||||
@EntityScan({ "com.eactive.eai.data.entity.onl.message", "com.eactive.eai.data.entity.onl.transformer",
|
||||
"com.eactive.eai.rms.data.entity.onl.bzwkdstcd", "com.eactive.eai.data.entity.onl.unifbwk" })
|
||||
|
||||
class TransformServiceTest {
|
||||
|
||||
@Autowired
|
||||
private TransformService transformService;
|
||||
|
||||
@Mock
|
||||
private SessionManager sessionManager;
|
||||
|
||||
@Test
|
||||
void testFindAll() {
|
||||
LoginVo loginVo = new LoginVo();
|
||||
loginVo.setUserId("admin");
|
||||
SessionManager.setLoginVo(loginVo);
|
||||
|
||||
Page<TransformEaiMessage> page = transformService.findAll(Pageable.ofSize(20), null, null, null, null);
|
||||
|
||||
Assertions.assertNotNull(page);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
class TransformServiceTestConfig {
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.eactive.eai.rms.onl.manage.adapter.adapter;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.autoconfigure.domain.EntityScan;
|
||||
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
import com.eactive.eai.data.jpa.BaseRepositoryImpl;
|
||||
|
||||
@DataJpaTest
|
||||
@ContextConfiguration(classes = AdapterManServiceTest.class)
|
||||
@ComponentScan("com.eactive.eai.data.entity.onl.adapter")
|
||||
@EntityScan({ "com.eactive.eai.data.entity.onl.adapter" })
|
||||
@EnableJpaRepositories(repositoryBaseClass = BaseRepositoryImpl.class, basePackages = { "com.eactive.eai.data.entity.onl.adapter" })
|
||||
class AdapterManServiceTest {
|
||||
|
||||
// @Autowired
|
||||
// AdapterPropLoader adapterPropEntityService;
|
||||
|
||||
@Test
|
||||
void testSelectAdapterPropInfo() {
|
||||
// adapterPropEntityService.findSnaAppcodeProps("testgroupname");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<aspectj>
|
||||
<aspects>
|
||||
<aspect
|
||||
name="com.eactive.eai.rms.common.logging.RequestReportAspect"></aspect>
|
||||
<exclude within="org..*" />
|
||||
</aspects>
|
||||
<!-- -Xlint:ignore -->
|
||||
<weaver options="-Xreweavable ">
|
||||
<include within="com.eactive.eai..*" />
|
||||
<exclude within="com.eactive.eai..*CGLIB*" />
|
||||
<exclude within="com.ibm..*" />
|
||||
<exclude within="org..*" />
|
||||
</weaver>
|
||||
</aspectj>
|
||||
@@ -0,0 +1,21 @@
|
||||
INSERT INTO tseaicm01 (eaibzwkdstcd,bzwkdsticname,applcd,bzwkdsticdesc,trackasiskey1name,trackasiskey2name,rsempname,rspblpsncntpctnt,groupcocd,discarddate,inputdstcd,last_mod_dtm) VALUES
|
||||
('ADA','예금관리','ADA ','예금관리 처리를 담당하는 어플리케이션',' ','',' ',' ',' ',' ','APP','2021-12-29 20:30:49'),
|
||||
('ADB','이체관리','ADB ','이체관리 처리를 담당하는 어플리케이션',' ','',' ',' ',' ',' ','APP','2021-12-29 20:30:49'),
|
||||
('ADC','펀드관리','ADC ','펀드관리 처리를 담당하는 어플리케이션','','','','',' ',' ','APP','2021-12-29 20:30:49'),
|
||||
('ADE','환관리','ADE ','환관리 처리를 담당하는 어플리케이션',' ','',' ',' ',' ',' ','APP','2021-12-29 20:30:49'),
|
||||
('ADF','연금관리','ADF ','연금관리 처리를 담당하는 어플리케이션',' ','',' ',' ',' ',' ','APP','2021-12-29 20:30:49'),
|
||||
('ADG','카드관리','ADG ','카드관리 처리를 담당하는 어플리케이션',' ','',' ',' ',' ',' ','APP','2021-12-29 20:30:49'),
|
||||
('BRI','보험리스크','BRI ','보험리스크 처리를 담당하는 어플리케이션',' ',' ',' ',' ',' ',' ','APP','2021-12-29 20:30:49'),
|
||||
('BRK','보험시장리스크','BRK ','보험시장리스크를 처리하는 어플리케이션',' ',' ',' ',' ',' ',' ','APP','2021-12-29 20:30:49'),
|
||||
('ATH','고객원장정보','ATH ','고객원장정보 처리를 담당하는 어플리케이션',' ','',' ',' ',' ',' ','APP','2021-12-29 20:30:49'),
|
||||
('BRL','보험ALM','BRL ','보험ALM 처리를 담당하는 어플리케이션',' ',' ',' ',' ',' ',' ','APP','2021-12-29 20:30:49'),
|
||||
('BRM','예금시장리스크','BRM ','예금시장리스크 처리를 담당하는 어플리케이션',' ',' ',' ',' ',' ',' ','APP','2021-12-29 20:30:49'),
|
||||
('BRO','운영리스크','BRO ','운영리스크 처리를 담당하는 어플리케이션',' ',' ',' ',' ',' ',' ','APP','2021-12-29 20:30:49');
|
||||
INSERT INTO tseairm06 (userid,eaibzwkdstcd,savetype) VALUES
|
||||
('admin','ADA','R'),
|
||||
('admin','ADB','R'),
|
||||
('admin','ADC','R'),
|
||||
('admin','ADE','R'),
|
||||
('admin','ADF','R'),
|
||||
('admin','ADG','R');
|
||||
|
||||
Reference in New Issue
Block a user