From c8f82ab48e3ed455f672f311371532d1ff0c61b2 Mon Sep 17 00:00:00 2001 From: "ICKostiantyn.Ivanov" Date: Tue, 16 Apr 2024 08:15:49 +0200 Subject: [PATCH] BAEL-6346 - Fixes according to editor comments --- .../src/main/resources/application.properties | 1 - .../NotManagedTypeExceptionIntegrationTest.java | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/persistence-modules/spring-data-jpa-repo-4/src/main/resources/application.properties b/persistence-modules/spring-data-jpa-repo-4/src/main/resources/application.properties index bf1459fb9d..649c494792 100644 --- a/persistence-modules/spring-data-jpa-repo-4/src/main/resources/application.properties +++ b/persistence-modules/spring-data-jpa-repo-4/src/main/resources/application.properties @@ -1,4 +1,3 @@ -server.port=0 spring.datasource.url=jdbc:h2:mem:db;DB_CLOSE_DELAY=-1 spring.datasource.username=sa spring.datasource.password=sa diff --git a/persistence-modules/spring-data-jpa-repo-4/src/test/java/com/baeldung/spring/notamanagedtype/NotManagedTypeExceptionIntegrationTest.java b/persistence-modules/spring-data-jpa-repo-4/src/test/java/com/baeldung/spring/notamanagedtype/NotManagedTypeExceptionIntegrationTest.java index fda373f86d..64e844d68c 100644 --- a/persistence-modules/spring-data-jpa-repo-4/src/test/java/com/baeldung/spring/notamanagedtype/NotManagedTypeExceptionIntegrationTest.java +++ b/persistence-modules/spring-data-jpa-repo-4/src/test/java/com/baeldung/spring/notamanagedtype/NotManagedTypeExceptionIntegrationTest.java @@ -17,7 +17,7 @@ import com.baeldung.spring.notamanagedtype.missedentityscan.repository.CorrectEn class NotManagedTypeExceptionIntegrationTest { @Test - void givenEntityWithoutAnnotationApplication_WhenBootstrap_ThenExpectedExceptionThrown() { + void givenEntityWithoutAnnotationApplication_whenBootstrap_thenExpectedExceptionThrown() { Exception exception = assertThrows(Exception.class, () -> run(EntityWithoutAnnotationApplication.class)); @@ -27,7 +27,7 @@ class NotManagedTypeExceptionIntegrationTest { } @Test - void givenEntityWithoutAnnotationApplicationFixed_WhenBootstrap_ThenRepositoryBeanShouldBePresentInContext() { + void givenEntityWithoutAnnotationApplicationFixed_whenBootstrap_thenRepositoryBeanShouldBePresentInContext() { ConfigurableApplicationContext context = run(EntityWithoutAnnotationFixedApplication.class); EntityWithoutAnnotationFixedRepository repository = context .getBean(EntityWithoutAnnotationFixedRepository.class); @@ -36,7 +36,7 @@ class NotManagedTypeExceptionIntegrationTest { } @Test - void givenEntityWithJakartaAnnotationApplication_WhenBootstrap_ThenExpectedExceptionThrown() { + void givenEntityWithJakartaAnnotationApplication_whenBootstrap_thenExpectedExceptionThrown() { Exception exception = assertThrows(Exception.class, () -> run(EntityWithJakartaAnnotationApplication.class)); @@ -46,7 +46,7 @@ class NotManagedTypeExceptionIntegrationTest { } @Test - void givenWrongEntityScanApplication_WhenBootstrap_ThenExpectedExceptionThrown() { + void givenWrongEntityScanApplication_whenBootstrap_thenExpectedExceptionThrown() { Exception exception = assertThrows(Exception.class, () -> run(WrongEntityScanApplication.class)); @@ -56,7 +56,7 @@ class NotManagedTypeExceptionIntegrationTest { } @Test - void givenWrongEntityScanApplicationFixed_WhenBootstrap_ThenRepositoryBeanShouldBePresentInContext() { + void givenWrongEntityScanApplicationFixed_whenBootstrap_thenRepositoryBeanShouldBePresentInContext() { ConfigurableApplicationContext context = run(WrongEntityScanFixedApplication.class); CorrectEntityRepository repository = context .getBean(CorrectEntityRepository.class);