Skip to content

Commit c07ed8b

Browse files
committed
Update trimming method names
1 parent 85f1895 commit c07ed8b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

morphia/src/it/java/org/seedstack/mongodb/morphia/SpecificationIT.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@ public void testStringEqualityWithTrim() throws Exception {
123123
.build())
124124
).isEmpty();
125125
assertThat(repository.get(specificationBuilder.of(Product.class)
126-
.property("pictures.name").equalTo("picture4").leftTrimmed()
126+
.property("pictures.name").equalTo("picture4").trimmingLead()
127127
.build())
128128
).containsExactly(product4);
129129
assertThat(repository.get(specificationBuilder.of(Product.class)
130-
.property("pictures.name").equalTo("picture4").rightTrimmed()
130+
.property("pictures.name").equalTo("picture4").trimmingTail()
131131
.build())
132132
).containsExactly(product5);
133133
assertThat(repository.get(specificationBuilder.of(Product.class)
134-
.property("pictures.name").equalTo("picture4").trimmed()
134+
.property("pictures.name").equalTo("picture4").trimming()
135135
.build())
136136
).containsExactly(product4, product5);
137137
}
@@ -183,15 +183,15 @@ public void testStringMatchingWithTrim() throws Exception {
183183
.build())
184184
).isEmpty();
185185
assertThat(repository.get(specificationBuilder.of(Product.class)
186-
.property("pictures.name").matching("pict?re4").leftTrimmed()
186+
.property("pictures.name").matching("pict?re4").trimmingLead()
187187
.build())
188188
).containsExactly(product4);
189189
assertThat(repository.get(specificationBuilder.of(Product.class)
190-
.property("pictures.name").matching("pict?re4").rightTrimmed()
190+
.property("pictures.name").matching("pict?re4").trimmingTail()
191191
.build())
192192
).containsExactly(product5);
193193
assertThat(repository.get(specificationBuilder.of(Product.class)
194-
.property("pictures.name").matching("pict?re4").trimmed()
194+
.property("pictures.name").matching("pict?re4").trimming()
195195
.build())
196196
).containsExactly(product4, product5);
197197
}

0 commit comments

Comments
 (0)