From 2c6b0b4626d1480254fd9a6eb8bb2aaff5be268f Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 17 May 2016 22:50:37 +0200 Subject: [PATCH] Added TODO (testing JPA makes no sense here) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../jusercore/model/user/AddressbookUserSessionBean.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java index d801e2d..c7b85c8 100644 --- a/src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java @@ -234,10 +234,11 @@ public class AddressbookUserSessionBean extends BaseAddressbookDatabaseBean impl User user = (User) query.getSingleResult(); // Should be there + // @TODO This assertion tests the JPA assert (user instanceof User) : "user is null"; //NOI18N // Trace message - this.getLoggerBeanLocal().logTrace(MessageFormat.format("findUserById: user={0} - EXIT!!", user)); //NOI18N + this.getLoggerBeanLocal().logTrace(MessageFormat.format("findUserById: user={0} - EXIT!", user)); //NOI18N // Return found user return user; -- 2.39.5