@Test public void testExecute_WithVariousSGM_ExpectMarkedInTheEnd() throws Exception { MarkSecurityGroupMemberDeleteTask task = this.factoryTask.create(this.sgm); task.execute(); SecurityGroupMember sgm = this.txControl.required(() -> this.em.find(SecurityGroupMember.class, this.sgm.getId())); assertTrue(sgm.getMarkedForDeletion()); }
public MarkSecurityGroupMemberDeleteTask create(SecurityGroupMember sgm) { MarkSecurityGroupMemberDeleteTask task = new MarkSecurityGroupMemberDeleteTask(); task.sgm = sgm; task.dbConnectionManager = this.dbConnectionManager; task.txBroadcastUtil = this.txBroadcastUtil; return task; }
MarkSecurityGroupMemberDeleteTask extends TransactionalTask { public MarkSecurityGroupMemberDeleteTask create(SecurityGroupMember sgm) { MarkSecurityGroupMemberDeleteTask task = new MarkSecurityGroupMemberDeleteTask(); task.sgm = sgm; task.dbConnectionManager = this.dbConnectionManager; task.txBroadcastUtil = this.txBroadcastUtil; return task; } }
MarkSecurityGroupMemberDeleteTask extends TransactionalTask { public MarkSecurityGroupMemberDeleteTask create(SecurityGroupMember sgm) { MarkSecurityGroupMemberDeleteTask task = new MarkSecurityGroupMemberDeleteTask(); task.sgm = sgm; task.dbConnectionManager = this.dbConnectionManager; task.txBroadcastUtil = this.txBroadcastUtil; return task; }  }
MarkSecurityGroupMemberDeleteTask extends TransactionalTask { public MarkSecurityGroupMemberDeleteTask create(SecurityGroupMember sgm) { MarkSecurityGroupMemberDeleteTask task = new MarkSecurityGroupMemberDeleteTask(); task.sgm = sgm; task.dbConnectionManager = this.dbConnectionManager; task.txBroadcastUtil = this.txBroadcastUtil; return task; }  @Override String getName(); @Override void executeTransaction(EntityManager em); MarkSecurityGroupMemberDeleteTask create(SecurityGroupMember sgm); }
MarkSecurityGroupMemberDeleteTask extends TransactionalTask { public MarkSecurityGroupMemberDeleteTask create(SecurityGroupMember sgm) { MarkSecurityGroupMemberDeleteTask task = new MarkSecurityGroupMemberDeleteTask(); task.sgm = sgm; task.dbConnectionManager = this.dbConnectionManager; task.txBroadcastUtil = this.txBroadcastUtil; return task; }  @Override String getName(); @Override void executeTransaction(EntityManager em); MarkSecurityGroupMemberDeleteTask create(SecurityGroupMember sgm);  }