You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2022/08/01 06:28:20 UTC
[isis] branch master updated: ISIS-3002: fixes JPA regr. tests
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new 2a3dc41112 ISIS-3002: fixes JPA regr. tests
2a3dc41112 is described below
commit 2a3dc41112f60deb76c9d1582ae6274e416f6469
Author: Andi Huber <ah...@apache.org>
AuthorDate: Mon Aug 1 08:28:14 2022 +0200
ISIS-3002: fixes JPA regr. tests
---
.../main/java/org/apache/isis/testdomain/jpa/JpaTestFixtures.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/regressiontests/stable/src/main/java/org/apache/isis/testdomain/jpa/JpaTestFixtures.java b/regressiontests/stable/src/main/java/org/apache/isis/testdomain/jpa/JpaTestFixtures.java
index 4ee8abff59..9f165cda21 100644
--- a/regressiontests/stable/src/main/java/org/apache/isis/testdomain/jpa/JpaTestFixtures.java
+++ b/regressiontests/stable/src/main/java/org/apache/isis/testdomain/jpa/JpaTestFixtures.java
@@ -28,7 +28,6 @@ import java.util.stream.IntStream;
import javax.inject.Inject;
-import org.assertj.core.api.Assertions;
import org.springframework.stereotype.Service;
import static org.junit.Assert.assertArrayEquals;
@@ -172,11 +171,8 @@ public class JpaTestFixtures implements MetamodelListener {
public void assertHasPersistenceId(final Object entity) {
val bookmark = bookmarkService.bookmarkForElseFail(entity);
- String identifier = bookmark.getIdentifier();
- Assertions.assertThat(identifier).startsWith("l_"); // because the entity has a long as its @PrimaryKey
- final int id = Integer.parseInt(identifier.substring(2));
+ final int id = Integer.parseInt(bookmark.getIdentifier());
assertTrue(id>0, ()->String.format("expected valid id; got %d", id));
- //System.err.printf("%s%n", bookmark);
}
public static Set<String> expectedBookTitles() {