package com.jasamedika.medifirst2000.dao.test;

/**Agama Class Test
 */

import static org.junit.Assert.assertNull;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.jasamedika.medifirst2000.dao.DepartemenDao;
import com.jasamedika.medifirst2000.entities.Departemen;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath*:com/jasamedika/**/applicationContext.xml")
public class DepartemenDaoTest {

	@Autowired
	private DepartemenDao dao;

	@Test
	public void testFindById() {
		Departemen result = dao.findOne(1);
		// System.out.println(result.getAlamats().size());
		// assertNotNull(result.getAlamats());
		//assertNull(result);
	}
}
