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

}
