I am running the next test:
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.bean
Try
@ContextConfiguration(locations = { "classpath:/META-INF/spring/applicationContext.xml" })
Honestly I would step away from the xml and go this route. Change
@ContextConfiguration(locations = { "/META-INF/spring/applicationContext.xml" })
to
@ContextConfiguration(classes = { FloorServiceTestConfig.class })
And create the about class
@Configuration
public class FloorServiceTestConfig
{
@Bean
public FloorService floorService()
{
return new FloorService();
}
}
This way when you need to mock your beans for class you're not testing it looks like below
@Configuration
public class FloorServiceTestConfig
{
@Bean
public FloorService floorService()
{
return Mockito.mock(FloorService.class);
}
}