diff --git a/libraries/helloWorld.docx b/libraries/helloWorld.docx index 28196dc241..9dcc7ccfec 100644 Binary files a/libraries/helloWorld.docx and b/libraries/helloWorld.docx differ diff --git a/spring-5/src/test/java/com/baeldung/functional/BeanRegistrationTest.java b/spring-5/src/test/java/com/baeldung/functional/BeanRegistrationIntegrationTest.java similarity index 96% rename from spring-5/src/test/java/com/baeldung/functional/BeanRegistrationTest.java rename to spring-5/src/test/java/com/baeldung/functional/BeanRegistrationIntegrationTest.java index 0b1542dbbc..5392a59343 100644 --- a/spring-5/src/test/java/com/baeldung/functional/BeanRegistrationTest.java +++ b/spring-5/src/test/java/com/baeldung/functional/BeanRegistrationIntegrationTest.java @@ -13,7 +13,7 @@ import com.baeldung.Spring5Application; @RunWith(SpringRunner.class) @SpringBootTest(classes = Spring5Application.class) -public class BeanRegistrationTest { +public class BeanRegistrationIntegrationTest { @Autowired private GenericWebApplicationContext context; diff --git a/spring-5/src/test/java/com/baeldung/security/SecurityTest.java b/spring-5/src/test/java/com/baeldung/security/SecurityIntegrationTest.java similarity index 65% rename from spring-5/src/test/java/com/baeldung/security/SecurityTest.java rename to spring-5/src/test/java/com/baeldung/security/SecurityIntegrationTest.java index a1c940a17a..5680625496 100644 --- a/spring-5/src/test/java/com/baeldung/security/SecurityTest.java +++ b/spring-5/src/test/java/com/baeldung/security/SecurityIntegrationTest.java @@ -13,7 +13,7 @@ import org.springframework.test.web.reactive.server.WebTestClient; @RunWith(SpringRunner.class) @ContextConfiguration(classes = SpringSecurity5Application.class) -public class SecurityTest { +public class SecurityIntegrationTest { @Autowired ApplicationContext context; @@ -22,27 +22,17 @@ public class SecurityTest { @Before public void setup() { - this.rest = WebTestClient - .bindToApplicationContext(this.context) - .configureClient() - .build(); + this.rest = WebTestClient.bindToApplicationContext(this.context).configureClient().build(); } @Test public void whenNoCredentials_thenRedirectToLogin() { - this.rest.get() - .uri("/") - .exchange() - .expectStatus().is3xxRedirection(); + this.rest.get().uri("/").exchange().expectStatus().is3xxRedirection(); } @Test @WithMockUser public void whenHasCredentials_thenSeesGreeting() { - this.rest.get() - .uri("/") - .exchange() - .expectStatus().isOk() - .expectBody(String.class).isEqualTo("Hello, user"); + this.rest.get().uri("/").exchange().expectStatus().isOk().expectBody(String.class).isEqualTo("Hello, user"); } } diff --git a/spring-5/src/test/java/com/baeldung/sessionattrs/SessionAttrsApplicationTests.java b/spring-5/src/test/java/com/baeldung/sessionattrs/SessionAttrsApplicationIntegrationTest.java similarity index 85% rename from spring-5/src/test/java/com/baeldung/sessionattrs/SessionAttrsApplicationTests.java rename to spring-5/src/test/java/com/baeldung/sessionattrs/SessionAttrsApplicationIntegrationTest.java index 0b15a2114d..05e9cdd21e 100644 --- a/spring-5/src/test/java/com/baeldung/sessionattrs/SessionAttrsApplicationTests.java +++ b/spring-5/src/test/java/com/baeldung/sessionattrs/SessionAttrsApplicationIntegrationTest.java @@ -7,7 +7,7 @@ import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest -public class SessionAttrsApplicationTests { +public class SessionAttrsApplicationIntegrationTest { @Test public void contextLoads() { diff --git a/spring-5/src/test/java/com/baeldung/sessionattrs/TodoControllerWithScopedProxyTest.java b/spring-5/src/test/java/com/baeldung/sessionattrs/TodoControllerWithScopedProxyIntegrationTest.java similarity index 95% rename from spring-5/src/test/java/com/baeldung/sessionattrs/TodoControllerWithScopedProxyTest.java rename to spring-5/src/test/java/com/baeldung/sessionattrs/TodoControllerWithScopedProxyIntegrationTest.java index 3db7c183ce..5b2f653f8a 100644 --- a/spring-5/src/test/java/com/baeldung/sessionattrs/TodoControllerWithScopedProxyTest.java +++ b/spring-5/src/test/java/com/baeldung/sessionattrs/TodoControllerWithScopedProxyIntegrationTest.java @@ -25,7 +25,7 @@ import org.springframework.web.context.WebApplicationContext; @SpringBootTest @AutoConfigureMockMvc @Import(TestConfig.class) -public class TodoControllerWithScopedProxyTest { +public class TodoControllerWithScopedProxyIntegrationTest { @Autowired private MockMvc mockMvc; diff --git a/spring-5/src/test/java/com/baeldung/sessionattrs/TodoControllerWithSessionAttributesTest.java b/spring-5/src/test/java/com/baeldung/sessionattrs/TodoControllerWithSessionAttributesIntegrationTest.java similarity index 95% rename from spring-5/src/test/java/com/baeldung/sessionattrs/TodoControllerWithSessionAttributesTest.java rename to spring-5/src/test/java/com/baeldung/sessionattrs/TodoControllerWithSessionAttributesIntegrationTest.java index a09fac9699..c97fc79f29 100644 --- a/spring-5/src/test/java/com/baeldung/sessionattrs/TodoControllerWithSessionAttributesTest.java +++ b/spring-5/src/test/java/com/baeldung/sessionattrs/TodoControllerWithSessionAttributesIntegrationTest.java @@ -24,7 +24,7 @@ import org.springframework.web.servlet.FlashMap; @RunWith(SpringRunner.class) @SpringBootTest @AutoConfigureMockMvc -public class TodoControllerWithSessionAttributesTest { +public class TodoControllerWithSessionAttributesIntegrationTest { @Autowired private MockMvc mockMvc; diff --git a/spring-5/src/test/java/com/baeldung/web/client/WebTestClientTest.java b/spring-5/src/test/java/com/baeldung/web/client/WebTestClientIntegrationTest.java similarity index 97% rename from spring-5/src/test/java/com/baeldung/web/client/WebTestClientTest.java rename to spring-5/src/test/java/com/baeldung/web/client/WebTestClientIntegrationTest.java index 43114b5b50..9a6e997ca1 100644 --- a/spring-5/src/test/java/com/baeldung/web/client/WebTestClientTest.java +++ b/spring-5/src/test/java/com/baeldung/web/client/WebTestClientIntegrationTest.java @@ -16,7 +16,7 @@ import reactor.core.publisher.Mono; @RunWith(SpringRunner.class) @SpringBootTest(classes = Spring5Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) -public class WebTestClientTest { +public class WebTestClientIntegrationTest { @LocalServerPort private int port; diff --git a/spring-boot/src/test/java/org/baeldung/repository/UserRepositoryTest.java b/spring-boot/src/test/java/org/baeldung/repository/UserRepositoryIntegrationTest.java similarity index 98% rename from spring-boot/src/test/java/org/baeldung/repository/UserRepositoryTest.java rename to spring-boot/src/test/java/org/baeldung/repository/UserRepositoryIntegrationTest.java index 227bb02db2..6dfcb78327 100644 --- a/spring-boot/src/test/java/org/baeldung/repository/UserRepositoryTest.java +++ b/spring-boot/src/test/java/org/baeldung/repository/UserRepositoryIntegrationTest.java @@ -23,7 +23,7 @@ import static org.hamcrest.MatcherAssert.assertThat; */ @RunWith(SpringRunner.class) @SpringBootTest(classes = Application.class) -public class UserRepositoryTest { +public class UserRepositoryIntegrationTest { private final String USER_NAME_ADAM = "Adam"; private final Integer ACTIVE_STATUS = 1;