Skip to content

Commit c9b941e

Browse files
schaudermp911de
authored andcommitted
Polishing.
See #1162
1 parent e93b1af commit c9b941e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/PersistentPropertyPathExtensionUnitTests.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package org.springframework.data.jdbc.core;
1717

18-
import static org.assertj.core.api.Assertions.*;
1918
import static org.assertj.core.api.SoftAssertions.*;
2019
import static org.springframework.data.relational.core.sql.SqlIdentifier.*;
2120

@@ -228,10 +227,14 @@ void equalsWorks() {
228227
void isWritable() {
229228

230229
assertSoftly(softly -> {
231-
softly.assertThat(PersistentPropertyPathExtension.isWritable(createSimplePath("withId"))).describedAs("simple path is writable").isTrue();
232-
softly.assertThat(PersistentPropertyPathExtension.isWritable(createSimplePath("secondList.third2"))).describedAs("long path is writable").isTrue();
233-
softly.assertThat(PersistentPropertyPathExtension.isWritable(createSimplePath("second"))).describedAs("simple read only path is not writable").isFalse();
234-
softly.assertThat(PersistentPropertyPathExtension.isWritable(createSimplePath("second.third"))).describedAs("long path containing read only element is not writable").isFalse();
230+
softly.assertThat(PersistentPropertyPathExtension.isWritable(createSimplePath("withId")))
231+
.describedAs("simple path is writable").isTrue();
232+
softly.assertThat(PersistentPropertyPathExtension.isWritable(createSimplePath("secondList.third2")))
233+
.describedAs("long path is writable").isTrue();
234+
softly.assertThat(PersistentPropertyPathExtension.isWritable(createSimplePath("second")))
235+
.describedAs("simple read only path is not writable").isFalse();
236+
softly.assertThat(PersistentPropertyPathExtension.isWritable(createSimplePath("second.third")))
237+
.describedAs("long path containing read only element is not writable").isFalse();
235238
});
236239
}
237240

@@ -250,8 +253,7 @@ PersistentPropertyPath<RelationalPersistentProperty> createSimplePath(String pat
250253
@SuppressWarnings("unused")
251254
static class DummyEntity {
252255
@Id Long entityId;
253-
@ReadOnlyProperty
254-
Second second;
256+
@ReadOnlyProperty Second second;
255257
@Embedded(onEmpty = OnEmpty.USE_NULL, prefix = "sec") Second second2;
256258
@Embedded(onEmpty = OnEmpty.USE_NULL) Second second3;
257259
List<Second> secondList;

0 commit comments

Comments
 (0)