Update PostgreSQLPluginTestService.java

This commit is contained in:
qianmoQ 2022-09-28 00:08:18 +08:00 committed by GitHub
parent 5ed5d21f9d
commit 8e2eb6ab70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ public class PostgreSQLPluginTestService
public void test()
{
Set<Plugin> plugins = injector.getInstance(Key.get(new TypeLiteral<Set<Plugin>>() {}));
Optional<Plugin> pluginOptional = plugins.stream().filter(v -> v.name().equalsIgnoreCase("PgSQL")).findFirst();
Optional<Plugin> pluginOptional = plugins.stream().filter(v -> v.name().equalsIgnoreCase("PostgreSQL")).findFirst();
if (pluginOptional.isPresent()) {
Plugin plugin = pluginOptional.get();
plugin.connect(configure);
@ -40,4 +40,4 @@ public class PostgreSQLPluginTestService
plugin.destroy();
}
}
}
}