Skip to content

Commit e0a0234

Browse files
committed
[F] Fix plugin mock factory
1 parent 1f7f990 commit e0a0234

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/test/java/org/hydev/mcpm/client/database/PluginMockFactory.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.hydev.mcpm.client.database;
22

3-
import org.hydev.mcpm.client.database.fetcher.BriefFetcherListener;
4-
import org.hydev.mcpm.client.database.fetcher.ConstantFetcher;
53
import org.hydev.mcpm.client.models.PluginCommand;
64
import org.hydev.mcpm.client.models.PluginModel;
75
import org.hydev.mcpm.client.models.PluginVersion;
@@ -143,20 +141,6 @@ public static PluginModel model(long id, String name, String description, List<S
143141
);
144142
}
145143

146-
/**
147-
* Creates a mock DatabaseInteractor object with the provided plugin list.
148-
*
149-
* @param plugins A list of plugins that the DatabaseInteractor will have access to.
150-
* @return A DatabaseInteractor object.
151-
*/
152-
public static DatabaseInteractor interactor(List<PluginModel> plugins) {
153-
var fetcher = new ConstantFetcher(plugins);
154-
var listener = new BriefFetcherListener(true);
155-
156-
return new DatabaseInteractor(fetcher, listener);
157-
}
158-
159-
160144
/**
161145
* Generates a sample list of plugins used for testing, containing the name, description, and commands.
162146
*

0 commit comments

Comments
 (0)