Skip to content

Commit

Permalink
Update SyncTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
amberin authored May 19, 2024
1 parent 9c4429a commit 5933a82
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public void testRenameUsedRepo() {
testUtils.sync();

book = dataRepository.getBookView("book");
assertEquals(BookSyncStatus.ONLY_BOOK_WITHOUT_LINK_AND_ONE_REPO.toString(), book.getBook().getSyncStatus());
assertEquals(BookSyncStatus.BOOK_NEVER_SYNCED_WITHOUT_LINK_AND_ONE_REPO.toString(), book.getBook().getSyncStatus());
assertEquals("mock://repo-b", book.getLinkRepo().getUrl());
assertEquals("mock://repo-b", book.getSyncedTo().getRepoUri().toString());
assertEquals("mock://repo-b/book.org", book.getSyncedTo().getUri().toString());
Expand All @@ -156,7 +156,7 @@ public void testDeletingUsedRepo() {
testUtils.sync();

book = dataRepository.getBookView("book");
assertEquals(BookSyncStatus.ONLY_BOOK_WITHOUT_LINK_AND_ONE_REPO.toString(), book.getBook().getSyncStatus());
assertEquals(BookSyncStatus.BOOK_NEVER_SYNCED_WITHOUT_LINK_AND_ONE_REPO.toString(), book.getBook().getSyncStatus());
assertEquals("mock://repo-b", book.getLinkRepo().getUrl());
assertEquals("mock://repo-b", book.getSyncedTo().getRepoUri().toString());
assertEquals("mock://repo-b/book.org", book.getSyncedTo().getUri().toString());
Expand Down Expand Up @@ -319,7 +319,7 @@ public void testDeletedRepoShouldStayAsBookLink() {
namesakes = testUtils.sync(); // TODO: Don't use namesakes, be consistent and use book.status like in some methods
book = dataRepository.getBookView("booky");

assertEquals(BookSyncStatus.ONLY_BOOK_WITHOUT_LINK_AND_ONE_REPO, namesakes.get("booky").getStatus());
assertEquals(BookSyncStatus.BOOK_NEVER_SYNCED_WITHOUT_LINK_AND_ONE_REPO, namesakes.get("booky").getStatus());

assertFalse(book.getBook().isDummy());
assertEquals("mock://repo-c", book.getLinkRepo().getUrl());
Expand Down

0 comments on commit 5933a82

Please sign in to comment.