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 9292203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:49:19+00:00 2026-06-18T20:49:19+00:00

my Problem is that some test are Failed. I think that a Function destroy

  • 0

my Problem is that some test are Failed. I think that a Function destroy the Context and because of that the Test failed.

Did Spring load the Context new for every Test or for every Test Class or just once for the Test Run?

  • 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-06-18T20:49:20+00:00Added an answer on June 18, 2026 at 8:49 pm

    Out of the box, with no configuration changes Spring should have only loaded the context once for each test suite.

    By default, once loaded, the configured ApplicationContext is reused
    for each test. Thus the setup cost is incurred only once per test
    suite, and subsequent test execution is much faster. In this context,
    the term test suite means all tests run in the same JVM — for example,
    all tests run from an Ant, Maven, or Gradle build for a given project
    or module. In the unlikely case that a test corrupts the application
    context and requires reloading — for example, by modifying a bean
    definition or the state of an application object — the TestContext
    framework can be configured to reload the configuration and rebuild
    the application context before executing the next test.

    Source: http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/testing.html#testcontext-ctx-management

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

Sidebar

Related Questions

I want to test the phpDocumentor-alpha, and there's a problem that some people seems
I am using TIdHttpServer to process some commands the problem is that some commands
Ok, my problem is that some providers support SREG and some support only AX
I am a Perl newbie, stuck with another bioinformatics problem that requires some help
I want to create a crawler with C#. The problem is that some websites
i try to read Data from an Oracle-Database. The problem is that in some
I have a problem that I'm working on for quite some time now. I
Im currently facing the problem that when i try to set focus on some
I have a simple problem that I've been stuck on for some time and
I have a problem that I'm hoping to get some direction in solving -

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.