From: Roland Haeder Date: Tue, 17 May 2016 20:50:37 +0000 (+0200) Subject: Added TODO (testing JPA makes no sense here) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=878831ea8b06cd6cbff83b92a1e2494050f1b3be;p=pizzaservice-ejb.git Added TODO (testing JPA makes no sense here) Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java index a959a84..164a434 100644 --- a/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java @@ -237,10 +237,11 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS 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;