package com.example.learnerLad.classes; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @SpringBootTest @RunWith(SpringRunner.class) public class InstructorConfigTest { @Autowired @Qualifier("tcUsaInstructors") private Instructors USinstructor; @Autowired @Qualifier("tcUkInstructors") private Instructors UKinstructor; @Autowired @Qualifier("instructors") private Instructors instructors; @Test public void tcUsaInstructors() { Assert.assertNotNull(USinstructor); } @Test public void tcUkInstructors() { Assert.assertNotNull(UKinstructor); } @Test public void instructors() { Assert.assertNotNull(instructors); } }