Fixed spring-session integration tests (#4650)

This commit is contained in:
Amit Pandey
2018-07-08 16:57:45 +05:30
committed by Grzegorz Piwowarek
parent 3b7cb37379
commit 28166a73de
29 changed files with 258 additions and 101 deletions

View File

@@ -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");
}