package com.ifish.serviceImpl;

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.ifish.dto.JsonResult;
import com.ifish.enums.AdTypeEnum;
import com.ifish.service.AdInfoService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(value="classpath:application-context.xml")
public class AdInfoServiceImplTest {

	@Autowired
	private AdInfoService adInfoService;
	
	@Test
	public void testGetAdInfosByType() {
		JsonResult<?> result = adInfoService.getAdInfosByType(AdTypeEnum.one);
		System.out.println(result);
	}

}
