Fixed spring-session integration tests (#4650)
This commit is contained in:
committed by
Grzegorz Piwowarek
parent
3b7cb37379
commit
28166a73de
@@ -5,7 +5,6 @@ import static org.junit.Assert.assertTrue;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.BeanCreationException;
|
||||
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
@@ -30,7 +29,7 @@ public class FileProcessorIntegrationTest {
|
||||
assertTrue(file.getText().endsWith("processed"));
|
||||
}
|
||||
|
||||
@Test(expected=NoSuchBeanDefinitionException.class)
|
||||
@Test(expected=BeanCreationException.class)
|
||||
public void whenDependentBeanNotAvailable_ThrowsNoSuchBeanDefinitionException(){
|
||||
context.getBean("dummyFileProcessor");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user