package com.crunii.micro.core.test;

import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.transaction.annotation.Transactional;

import com.crunii.micro.common.utils.JasyptEncryptorUtil;
import com.crunii.micro.core.Application;

@RunWith(SpringRunner.class)
@ActiveProfiles(value = "local")
@SpringBootTest(classes = { Application.class }, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
@Transactional(timeout = 1800)
public class BaseTestCore {
	static {
		JasyptEncryptorUtil.setConfigClientProps();
		JasyptEncryptorUtil.setAdminClientProps();
		System.setProperty("es.set.netty.runtime.available.processors", "false");
	}

}
