Go to RevassessTier3\src\test\java\com\tier3\answers\Answer1Tests.java
Run as Junit Test
Possible solution
Replace
RevassessTier3\src\test\java\com\tier3\answers\Answer1Tests.java
Line 25
assertEquals(10,sess.createNativeQuery("select from abs(-10)", Integer.class));
with
assertEquals(10,sess.createNativeQuery("select from abs(-10)").getSingleResult());
Describe the bug Tier 3 Test 1 asserts single result but returns List java.lang.AssertionError: expected:<10> but was:org.hibernate.query.internal.NativeQueryImpl@67ab1c47
To Reproduce Steps to reproduce the behavior:
Possible solution Replace RevassessTier3\src\test\java\com\tier3\answers\Answer1Tests.java Line 25 assertEquals(10,sess.createNativeQuery("select from abs(-10)", Integer.class)); with assertEquals(10,sess.createNativeQuery("select from abs(-10)").getSingleResult());