reset password
Author Message
shashank7991
Posts: 18
Posted 10:41 Jul 15, 2015 |

When trying to run testcases it shows

"

FAILED CONFIGURATION: @BeforeClass springTestContextPrepareTestInstance
java.lang.IllegalStateException: Failed to load ApplicationContext

"

Please help me out with this.

Last edited by shashank7991 at 10:42 Jul 15, 2015.
cysun
Posts: 2935
Posted 10:57 Jul 15, 2015 |

Looks like the same problem as this one.

shashank7991
Posts: 18
Posted 11:05 Jul 15, 2015 |

No, Its their in my code.

Still getting error. Till yesterday night it was working properly with two test cases. When i added third one it start showing me this error.

cysun
Posts: 2935
Posted 11:06 Jul 15, 2015 |

If you look at the bottom part of your 2nd screenshot, it says "No qualifying bean of type ...".

shashank7991
Posts: 18
Posted 11:29 Jul 15, 2015 |

Check actual screenshot of applicantContext.xml file.

cysun
Posts: 2935
Posted 11:32 Jul 15, 2015 |

Check for @Repository in the DaoImpl. Also read the error message carefully and see there's something else that prevented the bean from being created.