package com.eactive.eai.transformer.layout;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.jdbc.Sql;

import com.eactive.eai.common.lifecycle.LifecycleException;
import com.eactive.eai.transformer.dao.jdbc.LayoutJdbcDao;
import com.eactive.eai.transformer.function.jpa.TransformJPATestConfiguration;

@DataJpaTest
@ContextConfiguration(classes = { TransformJPATestConfiguration.class })
@Sql({ "/com/eactive/eai/transformer/init_tseaitr06.sql", "/com/eactive/eai/transformer/init_tseaitr07.sql",
		"/com/eactive/eai/transformer/init_tseaitr08.sql" })
class LayoutManagerTest {

	@Autowired
	LayoutManager layoutManager;

	@Autowired
	LayoutJdbcDao layoutJdbcDao;
	
	@Autowired
	LayoutTypeManager layoutTypeManager;

	@Test
	void testStart() throws LifecycleException {
		layoutTypeManager.start();
		layoutManager.start();
	}

}
