|
13 | 13 | */ |
14 | 14 | package io.trino.gateway.ha.router; |
15 | 15 |
|
16 | | -<<<<<<< HEAD |
17 | | -======= |
18 | | -import com.google.inject.AbstractModule; |
19 | | -import com.google.inject.Guice; |
20 | | -import com.google.inject.Injector; |
21 | | ->>>>>>> c13a8db (address comments) |
22 | 16 | import io.trino.gateway.ha.HaGatewayTestUtils; |
23 | 17 | import io.trino.gateway.ha.config.DataStoreConfiguration; |
24 | 18 | import io.trino.gateway.ha.persistence.DefaultJdbcPropertiesProvider; |
@@ -54,26 +48,8 @@ void setUp() |
54 | 48 | HaGatewayTestUtils.seedRequiredData(tempH2DbDir.getAbsolutePath()); |
55 | 49 | DataStoreConfiguration db = new DataStoreConfiguration(jdbcUrl, "sa", |
56 | 50 | "sa", "org.h2.Driver", 4, false); |
57 | | -<<<<<<< HEAD |
58 | 51 | Jdbi jdbi = Jdbi.create(jdbcUrl, "sa", "sa"); |
59 | 52 | JdbcConnectionManager connectionManager = new JdbcConnectionManager(jdbi, db, new DefaultJdbcPropertiesProvider()); |
60 | | -======= |
61 | | - HaGatewayConfiguration configuration = new HaGatewayConfiguration(); |
62 | | - configuration.setDataStore(db); |
63 | | - AbstractModule testConfigModule = new AbstractModule() { |
64 | | - @Override |
65 | | - protected void configure() |
66 | | - { |
67 | | - bind(HaGatewayConfiguration.class) |
68 | | - .toInstance(configuration); |
69 | | - } |
70 | | - }; |
71 | | - Injector injector = Guice.createInjector( |
72 | | - testConfigModule, |
73 | | - new RouterBaseModule()); |
74 | | - |
75 | | - JdbcConnectionManager connectionManager = injector.getInstance(JdbcConnectionManager.class); |
76 | | ->>>>>>> c13a8db (address comments) |
77 | 53 | super.resourceGroupManager = new HaResourceGroupsManager(connectionManager); |
78 | 54 | } |
79 | 55 |
|
|
0 commit comments