Skip to content

Commit

Permalink
MODSOURMAN-1063: fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslav-epam committed Jan 18, 2024
1 parent 3145350 commit 2cafbf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ public class JournalRecordDaoImpl implements JournalRecordDao {
private static final Logger LOGGER = LogManager.getLogger();
public static final String SOURCE_RECORD_ENTITY_TYPE = "source_record_entity_type";
public static final String ORDER_ENTITY_ID = "order_entity_id";
public static final String SOURCE_ENTITY_ERROR = "source_entity_error";
public static final String INCOMING_RECORD_ID = "incoming_record_id";
public static final String HOLDINGS_ENTITY_HRID = "holdings_entity_hrid";
public static final String ITEM_HOLDINGS_ID = "item_holdings_id";
private final Set<String> sortableFields = Set.of("source_record_order", "action_type", "error");
private final Set<String> jobLogEntrySortableFields = Set.of("source_record_order", "title", "source_record_action_status",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import io.restassured.RestAssured;
import io.vertx.core.CompositeFuture;
import io.vertx.core.Future;
import io.vertx.core.Promise;
import io.vertx.core.Vertx;
import io.vertx.ext.unit.Async;
import io.vertx.ext.unit.TestContext;
Expand Down Expand Up @@ -1160,15 +1159,12 @@ public void shouldNotReturnMarcBibRecordsWhenInstanceDiscarderRetrievingWithErro

String sourceRecordId1 = UUID.randomUUID().toString();
String sourceRecordId2 = UUID.randomUUID().toString();
String sourceRecordId3 = UUID.randomUUID().toString();

Future<JournalRecord> future = Future.succeededFuture()
/* .compose(v -> createJournalRecord(createdJobExecution.getId(), sourceRecordId1, null, null, null, 1, CREATE, MARC_BIBLIOGRAPHIC, COMPLETED, null, null))
.compose(v -> createJournalRecord(createdJobExecution.getId(), sourceRecordId1, null, "in00000000002", null, 1, CREATE, INSTANCE, COMPLETED, null, null))*/
.compose(v -> createJournalRecord(createdJobExecution.getId(), sourceRecordId2, null, null, null, 0, CREATE, MARC_BIBLIOGRAPHIC, COMPLETED, null, null))
.compose(v -> createJournalRecord(createdJobExecution.getId(), sourceRecordId2, null, "in00000000001", null, 0, CREATE, INSTANCE, ERROR, "Error description 1", null))
.compose(v -> createJournalRecord(createdJobExecution.getId(), sourceRecordId3, null, null, null, 3, CREATE, MARC_BIBLIOGRAPHIC, COMPLETED, null, null))
.compose(v -> createJournalRecord(createdJobExecution.getId(), sourceRecordId3, null, "in00000000003", null, 3, CREATE, INSTANCE, ERROR, "Error description 2", null))
.compose(v -> createJournalRecord(createdJobExecution.getId(), sourceRecordId1, null, null, null, 0, CREATE, MARC_BIBLIOGRAPHIC, COMPLETED, null, null))
.compose(v -> createJournalRecord(createdJobExecution.getId(), sourceRecordId1, null, "in00000000001", null, 0, CREATE, INSTANCE, ERROR, "Error description 1", null))
.compose(v -> createJournalRecord(createdJobExecution.getId(), sourceRecordId2, null, null, null, 3, CREATE, MARC_BIBLIOGRAPHIC, COMPLETED, null, null))
.compose(v -> createJournalRecord(createdJobExecution.getId(), sourceRecordId2, null, "in00000000003", null, 3, CREATE, INSTANCE, ERROR, "Error description 2", null))
.onFailure(context::fail);

future.onComplete(ar -> context.verify(v -> {
Expand Down

0 comments on commit 2cafbf3

Please sign in to comment.