package com.uas.sso.service; import com.uas.sso.SsoApplication; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.context.annotation.Import; import org.springframework.context.annotation.ImportResource; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import static org.junit.Assert.*; @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = SsoApplication.class) //@ImportResource("classpath:spring/*.xml") @Import(ApplicationContextRegister.class) public class AppServiceTest { @Autowired AppService appService; @Test public void sample() { // System.out.println(1); } }