Polish Testing chapter

This commit is contained in:
Sam Brannen
2022-11-28 14:45:46 +01:00
parent 6c8fb6c204
commit 3afc6a5079
2 changed files with 6 additions and 10 deletions

View File

@@ -631,7 +631,7 @@ path that represents a resource URL (i.e., a path prefixed with `classpath:`, `f
@ExtendWith(SpringExtension.class)
// ApplicationContext will be loaded from "/app-config.xml" and
// "/test-config.xml" in the root of the classpath
@ContextConfiguration(locations={"/app-config.xml", "/test-config.xml"}) // <1>
@ContextConfiguration(locations = {"/app-config.xml", "/test-config.xml"}) // <1>
class MyTest {
// class body...
}
@@ -898,8 +898,7 @@ class:
.Java
----
@SpringJUnitConfig <1>
// ApplicationContext will be loaded from the
// static nested Config class
// ApplicationContext will be loaded from the static nested Config class
class OrderServiceTest {
@Configuration