Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to load an dataset before spring context beans creations? #42

Open
sandrocsimas opened this issue Apr 28, 2015 · 0 comments
Open

How to load an dataset before spring context beans creations? #42

sandrocsimas opened this issue Apr 28, 2015 · 0 comments

Comments

@sandrocsimas
Copy link

I have beans that load data from database inside @PostConstruct methods. In my tests i need to load the dataset before the creation of spring context beans. Is there any way to do this?

It seems that the follow code is not working correctly. The dataset is loaded after the spring context beans creation.

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:/WEB-INF/application-context.xml")
@TestExecutionListeners({ DataSetTestExecutionListener.class, DependencyInjectionTestExecutionListener.class })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant