Skip to content

Commit 224d695

Browse files
Augusto PassalaquaAugusto Passalaqua
authored andcommitted
Remove dependency on commons-lang3.
1 parent 81d8478 commit 224d695

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

javasource/databaseconnectortest/actions/AssertEqualsListEntityValues.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import static java.lang.String.format;
1313
import static java.util.stream.Collectors.joining;
14-
import static org.apache.commons.lang3.StringUtils.isEmpty;
1514
import java.io.IOException;
1615
import java.io.InputStream;
1716
import java.math.BigDecimal;
@@ -90,6 +89,10 @@ private Optional<String> compare(int objectNr, IMendixObject expected, IMendixOb
9089
return isEmpty(message) ? Optional.empty() : Optional.of(format("Row %s: ", objectNr) + message);
9190
}
9291

92+
private boolean isEmpty(String message) {
93+
return message == null || message.isBlank();
94+
}
95+
9396
private Optional<String> compare(PrimitiveType primitiveType, IMendixObjectMember<?> expected, IMendixObjectMember<?> actual) {
9497
Object expectedValue = toComparableValue(expected.getValue(getContext()));
9598
Object actualValue = toComparableValue(actual.getValue(getContext()));

0 commit comments

Comments
 (0)