@Test public void testSaveP() { OperationP op = new OperationP( "a", new TransmitDef(17L), new TransType(1L), 1.1, 1.1, new Date(), new Date(), "wj", new Program(1L)); operationService.save(op); this.flushSessionAndCloseSessionAndNewASession(); assertRowsCount(OperationP.class, 2); }
@Test public void testSaveS() { OperationS op = new OperationS( "a", new TransmitDef(17L), new TransType(1L), 1.1, 1.1, new Date(), new Date(), "wj", new Cawave(1L), new Transfer(1L)); operationService.save(op); this.flushSessionAndCloseSessionAndNewASession(); assertRowsCount(OperationS.class, 4); }