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;
		}
	}

}
