diff options
-rw-r--r-- | server/src/test/java/org/onap/usecaseui/server/service/impl/AlarmsHeaderServiceImplTest.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/impl/AlarmsHeaderServiceImplTest.java b/server/src/test/java/org/onap/usecaseui/server/service/impl/AlarmsHeaderServiceImplTest.java index 7afc0ecd..49544852 100644 --- a/server/src/test/java/org/onap/usecaseui/server/service/impl/AlarmsHeaderServiceImplTest.java +++ b/server/src/test/java/org/onap/usecaseui/server/service/impl/AlarmsHeaderServiceImplTest.java @@ -73,6 +73,12 @@ public class AlarmsHeaderServiceImplTest { public void flush() { } }; + new MockUp<SessionFactory>() { + @Mock + public Session openSession() { + return mockedSession.getMockInstance(); + } + }; new MockUp<Transaction>() { @Mock public void commit() { @@ -121,6 +127,12 @@ public class AlarmsHeaderServiceImplTest { public void flush() { } }; + new MockUp<SessionFactory>() { + @Mock + public Session openSession() { + return mockedSession.getMockInstance(); + } + }; new MockUp<Transaction>() { @Mock public void getTransaction() { |