Writing automated tests that focus on persistence

Pragya Keshap answered on February 17, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Writing persistence tests

  • Writing automated tests that focus on persistence

    0

    @DataMongoTest: This annotation starts up a MongoDB database when the test starts.

    @DataJpaTest: This annotation starts up a SQL database when the test starts.

    By default, Spring Boot configures the tests to roll back updates to the SQL database to minimize the risk of negative side effects on other tests. In our case, this behavior will cause some of the tests to fail. Therefore, automatic rollback is disabled with the class level annotation @Transactional(propagation = NOT_SUPPORTED

    https://learning.oreilly.com/library/view/hands-on-microservices-with/9781789613476/8d1ac89a-dc3f-453d-a520-599c66d70ce7.xhtml

    Popularity 1/10 Helpfulness 1/10 Language java
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 17 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.