@Test void testAddWithNonEmptyDatabase() { addOperations(List.of(OPERATION_1, OPERATION_2)); assertOperationExists(OPERATION_1.getProcessId()); assertOperationExists(OPERATION_2.getProcessId()); assertEquals(List.of(OPERATION_1, OPERATION_2), operationService.createQuery() .list()); }
public OperationQuery createQuery() { return new OperationQueryImpl(createEntityManager(), operationMapper); }
OperationService extends PersistenceService<Operation, OperationDto, String> { public OperationQuery createQuery() { return new OperationQueryImpl(createEntityManager(), operationMapper); } }
OperationService extends PersistenceService<Operation, OperationDto, String> { public OperationQuery createQuery() { return new OperationQueryImpl(createEntityManager(), operationMapper); } @Inject  OperationService(EntityManagerFactory entityManagerFactory); }
OperationService extends PersistenceService<Operation, OperationDto, String> { public OperationQuery createQuery() { return new OperationQueryImpl(createEntityManager(), operationMapper); } @Inject  OperationService(EntityManagerFactory entityManagerFactory); OperationQuery createQuery(); }
OperationService extends PersistenceService<Operation, OperationDto, String> { public OperationQuery createQuery() { return new OperationQueryImpl(createEntityManager(), operationMapper); } @Inject  OperationService(EntityManagerFactory entityManagerFactory); OperationQuery createQuery();  }