mirror of
https://gitee.com/devlive-community/datacap.git
synced 2024-11-30 11:07:41 +08:00
Update PostgreSQLPluginTestService.java
This commit is contained in:
parent
5ed5d21f9d
commit
8e2eb6ab70
@ -32,7 +32,7 @@ public class PostgreSQLPluginTestService
|
|||||||
public void test()
|
public void test()
|
||||||
{
|
{
|
||||||
Set<Plugin> plugins = injector.getInstance(Key.get(new TypeLiteral<Set<Plugin>>() {}));
|
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()) {
|
if (pluginOptional.isPresent()) {
|
||||||
Plugin plugin = pluginOptional.get();
|
Plugin plugin = pluginOptional.get();
|
||||||
plugin.connect(configure);
|
plugin.connect(configure);
|
||||||
@ -40,4 +40,4 @@ public class PostgreSQLPluginTestService
|
|||||||
plugin.destroy();
|
plugin.destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user