- /**
- * Close the entity manager.
- */
- @AfterClass
- public static void tearDown() {
- if (em != null) {
- em.close();
- }
- }
-
- @Test
- public void testGetCountFromDb() throws Exception {
-
- // Add an entry
- OnapOperationsHistoryDbao newEntry = new OnapOperationsHistoryDbao();
+ private Dbao createEntry(String cl, String target, String outcome) {
+ //
+ // Create entry
+ //
+ Dbao newEntry = new Dbao();
+ newEntry.setClosedLoopName(cl);
+ newEntry.setTarget(target);
+ newEntry.setOutcome(outcome);