Skip to content

Commit c8f82ab

Browse files
ICKostiantyn.IvanovICKostiantyn.Ivanov
ICKostiantyn.Ivanov
authored and
ICKostiantyn.Ivanov
committed
BAEL-6346 - Fixes according to editor comments
1 parent 5576958 commit c8f82ab

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Diff for: persistence-modules/spring-data-jpa-repo-4/src/main/resources/application.properties

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
server.port=0
21
spring.datasource.url=jdbc:h2:mem:db;DB_CLOSE_DELAY=-1
32
spring.datasource.username=sa
43
spring.datasource.password=sa

Diff for: persistence-modules/spring-data-jpa-repo-4/src/test/java/com/baeldung/spring/notamanagedtype/NotManagedTypeExceptionIntegrationTest.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
class NotManagedTypeExceptionIntegrationTest {
1919
@Test
20-
void givenEntityWithoutAnnotationApplication_WhenBootstrap_ThenExpectedExceptionThrown() {
20+
void givenEntityWithoutAnnotationApplication_whenBootstrap_thenExpectedExceptionThrown() {
2121
Exception exception = assertThrows(Exception.class,
2222
() -> run(EntityWithoutAnnotationApplication.class));
2323

@@ -27,7 +27,7 @@ void givenEntityWithoutAnnotationApplication_WhenBootstrap_ThenExpectedException
2727
}
2828

2929
@Test
30-
void givenEntityWithoutAnnotationApplicationFixed_WhenBootstrap_ThenRepositoryBeanShouldBePresentInContext() {
30+
void givenEntityWithoutAnnotationApplicationFixed_whenBootstrap_thenRepositoryBeanShouldBePresentInContext() {
3131
ConfigurableApplicationContext context = run(EntityWithoutAnnotationFixedApplication.class);
3232
EntityWithoutAnnotationFixedRepository repository = context
3333
.getBean(EntityWithoutAnnotationFixedRepository.class);
@@ -36,7 +36,7 @@ void givenEntityWithoutAnnotationApplicationFixed_WhenBootstrap_ThenRepositoryBe
3636
}
3737

3838
@Test
39-
void givenEntityWithJakartaAnnotationApplication_WhenBootstrap_ThenExpectedExceptionThrown() {
39+
void givenEntityWithJakartaAnnotationApplication_whenBootstrap_thenExpectedExceptionThrown() {
4040
Exception exception = assertThrows(Exception.class,
4141
() -> run(EntityWithJakartaAnnotationApplication.class));
4242

@@ -46,7 +46,7 @@ void givenEntityWithJakartaAnnotationApplication_WhenBootstrap_ThenExpectedExcep
4646
}
4747

4848
@Test
49-
void givenWrongEntityScanApplication_WhenBootstrap_ThenExpectedExceptionThrown() {
49+
void givenWrongEntityScanApplication_whenBootstrap_thenExpectedExceptionThrown() {
5050
Exception exception = assertThrows(Exception.class,
5151
() -> run(WrongEntityScanApplication.class));
5252

@@ -56,7 +56,7 @@ void givenWrongEntityScanApplication_WhenBootstrap_ThenExpectedExceptionThrown()
5656
}
5757

5858
@Test
59-
void givenWrongEntityScanApplicationFixed_WhenBootstrap_ThenRepositoryBeanShouldBePresentInContext() {
59+
void givenWrongEntityScanApplicationFixed_whenBootstrap_thenRepositoryBeanShouldBePresentInContext() {
6060
ConfigurableApplicationContext context = run(WrongEntityScanFixedApplication.class);
6161
CorrectEntityRepository repository = context
6262
.getBean(CorrectEntityRepository.class);

0 commit comments

Comments
 (0)