Skip to content

Commit

Permalink
Merge branch 'fix-arch2' of github.com:JabRef/jabref into fix-arch2
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Sep 8, 2024
2 parents 07048fb + 4fe5c27 commit 7ac7555
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.jabref.logic.util;

@FunctionalInterface
public interface NotificationService {
/**
* Notify the user in a non-blocking way (i.e., in form of toast in a snackbar).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

import org.jabref.gui.DialogService;
import org.jabref.logic.ai.chatting.chathistory.storages.MVStoreChatHistoryStorage;
import org.jabref.logic.util.NotificationService;

import static org.mockito.Mockito.mock;

class MVStoreChatHistoryStorageTest extends ChatHistoryStorageTest {
@Override
ChatHistoryStorage makeStorage(Path path) {
return new MVStoreChatHistoryStorage(path, mock(DialogService.class));
return new MVStoreChatHistoryStorage(path, mock(NotificationService.class));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

import java.nio.file.Path;

import org.jabref.gui.DialogService;
import org.jabref.logic.ai.ingestion.storages.MVStoreFullyIngestedDocumentsTracker;
import org.jabref.logic.util.NotificationService;

import static org.mockito.Mockito.mock;

class MVStoreFullyIngestedDocumentsTrackerTest extends FullyIngestedDocumentsTrackerTest {
@Override
FullyIngestedDocumentsTracker makeTracker(Path path) {
return new MVStoreFullyIngestedDocumentsTracker(path, mock(DialogService.class));
return new MVStoreFullyIngestedDocumentsTracker(path, mock(NotificationService.class));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

import java.nio.file.Path;

import org.jabref.gui.DialogService;
import org.jabref.logic.ai.summarization.storages.MVStoreSummariesStorage;
import org.jabref.logic.util.NotificationService;

import static org.mockito.Mockito.mock;

class MVStoreSummariesStorageTest extends SummariesStorageTest {
@Override
SummariesStorage makeSummariesStorage(Path path) {
return new MVStoreSummariesStorage(path, mock(DialogService.class));
return new MVStoreSummariesStorage(path, mock(NotificationService.class));
}

@Override
Expand Down

0 comments on commit 7ac7555

Please sign in to comment.