package com.test.repository;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.boot.test.WebIntegrationTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.findpersonal.findpersonaljpa.repository.ZonaRepository;
import com.test.config.Application;

@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = Application.class)
@WebIntegrationTest
public class ZonaRepositoryTest {

	private static final Logger LOGGER = LogManager.getLogger(ZonaRepositoryTest.class);
	
	@Autowired
	private ZonaRepository zonaRepository;

	@Test
	public void cadastrarZona() throws Exception {
		LOGGER.info("TESTE INICIO JPA ZONA");
		zonaRepository.findAll();
		LOGGER.info("TESTE FIM JPA ZONA");
	}

}
