コード例 #1
0
ファイル: OperationServiceTest.java プロジェクト: wj1s/gp
 @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);
 }
コード例 #2
0
ファイル: OperationServiceTest.java プロジェクト: wj1s/gp
 @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);
 }