|
1 | 1 | /* |
2 | | - * Copyright 2009-2022 the original author or authors. |
| 2 | + * Copyright 2009-2024 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
@@ -65,7 +65,6 @@ void get() { |
65 | 65 | final boolean testConnectionOnCheckin = true; |
66 | 66 | final boolean testConnectionOnCheckout = true; |
67 | 67 | final int unreturnedConnectionTimeout = 160; |
68 | | - final boolean usesTraditionalReflectiveProxies = true; |
69 | 68 | Injector injector = Guice.createInjector(new AbstractModule() { |
70 | 69 | @Override |
71 | 70 | protected void configure() { |
@@ -98,8 +97,6 @@ protected void configure() { |
98 | 97 | bindConstant().annotatedWith(Names.named("c3p0.testConnectionOnCheckin")).to(testConnectionOnCheckin); |
99 | 98 | bindConstant().annotatedWith(Names.named("c3p0.testConnectionOnCheckout")).to(testConnectionOnCheckout); |
100 | 99 | bindConstant().annotatedWith(Names.named("c3p0.unreturnedConnectionTimeout")).to(unreturnedConnectionTimeout); |
101 | | - bindConstant().annotatedWith(Names.named("c3p0.usesTraditionalReflectiveProxies")) |
102 | | - .to(usesTraditionalReflectiveProxies); |
103 | 100 | } |
104 | 101 | }); |
105 | 102 | C3p0DataSourceProvider provider = injector.getInstance(C3p0DataSourceProvider.class); |
@@ -134,7 +131,6 @@ protected void configure() { |
134 | 131 | assertEquals(testConnectionOnCheckin, dataSource.isTestConnectionOnCheckin()); |
135 | 132 | assertEquals(testConnectionOnCheckout, dataSource.isTestConnectionOnCheckout()); |
136 | 133 | assertEquals(unreturnedConnectionTimeout, dataSource.getUnreturnedConnectionTimeout()); |
137 | | - assertEquals(usesTraditionalReflectiveProxies, dataSource.isUsesTraditionalReflectiveProxies()); |
138 | 134 | } |
139 | 135 |
|
140 | 136 | @Test |
@@ -167,7 +163,6 @@ void get_OtherValues() { |
167 | 163 | final boolean testConnectionOnCheckin = false; |
168 | 164 | final boolean testConnectionOnCheckout = false; |
169 | 165 | final int unreturnedConnectionTimeout = 161; |
170 | | - final boolean usesTraditionalReflectiveProxies = false; |
171 | 166 | Injector injector = Guice.createInjector(new AbstractModule() { |
172 | 167 | @Override |
173 | 168 | protected void configure() { |
@@ -200,8 +195,6 @@ protected void configure() { |
200 | 195 | bindConstant().annotatedWith(Names.named("c3p0.testConnectionOnCheckin")).to(testConnectionOnCheckin); |
201 | 196 | bindConstant().annotatedWith(Names.named("c3p0.testConnectionOnCheckout")).to(testConnectionOnCheckout); |
202 | 197 | bindConstant().annotatedWith(Names.named("c3p0.unreturnedConnectionTimeout")).to(unreturnedConnectionTimeout); |
203 | | - bindConstant().annotatedWith(Names.named("c3p0.usesTraditionalReflectiveProxies")) |
204 | | - .to(usesTraditionalReflectiveProxies); |
205 | 198 | } |
206 | 199 | }); |
207 | 200 | C3p0DataSourceProvider provider = injector.getInstance(C3p0DataSourceProvider.class); |
@@ -236,7 +229,6 @@ protected void configure() { |
236 | 229 | assertEquals(testConnectionOnCheckin, dataSource.isTestConnectionOnCheckin()); |
237 | 230 | assertEquals(testConnectionOnCheckout, dataSource.isTestConnectionOnCheckout()); |
238 | 231 | assertEquals(unreturnedConnectionTimeout, dataSource.getUnreturnedConnectionTimeout()); |
239 | | - assertEquals(usesTraditionalReflectiveProxies, dataSource.isUsesTraditionalReflectiveProxies()); |
240 | 232 | } |
241 | 233 |
|
242 | 234 | @Test |
|
0 commit comments