Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7621143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:07:24+00:00 2026-05-31T04:07:24+00:00

The Test class of my application is extending AbstractSingleSpringContextTests. We are loading all the

  • 0

The Test class of my application is extending “AbstractSingleSpringContextTests”.

We are loading all the Spring config files by overriding the “getConfigLocations” method.

All Spring files that I am loading are bundled inside JAR files (which are provided by other teams).

Hence the startup time for the integration tests is quite high. I am unable to set the default lazy load parameter to false since the spring config files are in JAR files.

  1. Is there way to programmatically set lazy load to true while running
    the tests?
  2. Is there a way to programmatically disallow certain beans defined in application-context.xml from loading?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:07:25+00:00Added an answer on May 31, 2026 at 4:07 am

    Thanks a lot for your suggestions.

    I have able to lazily load by following the steps specified in this link – http://batmat.net/blog/post/2008/01/13/How-to-load-a-XML-Spring-context-lazily-by-default

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a test class that should only paint the application icon into
I have a spring application and I make my test class as follows: @RunWith(SpringJUnit4ClassRunner.class)
I have a Spring application (Spring Batch not web application). In a test class,
I've got a test class in a module that extends another test class in
I have following test class @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = {/services-test-config.xml}) public class MySericeTest { @Autowired
I've made some unit tests (in test class). The tutorial I've read said that
I'm currently converting a test class which extended the Spring class AbstractTransactionalSpringContextTests to Spring
If there are several methods in the test class, I found that the order
We have an old asp application that instantiates a .NET com visible class. In
I have now ear |----test.jar |-------META-INF |-------application.xml |-------test |-------Test.class |-------TestEJB.class |-------TestHome.class |----test.war |-------WEB-INF |-------web.xml

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.