File tree 2 files changed +28
-2
lines changed
src/test/java/io/trino/plugin/sybase
2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 33
33
<artifactId >trino-base-jdbc</artifactId >
34
34
</dependency >
35
35
36
+ <dependency >
37
+ <groupId >io.trino</groupId >
38
+ <artifactId >trino-plugin-toolkit</artifactId >
39
+ </dependency >
40
+
36
41
<dependency >
37
42
<groupId >javax.validation</groupId >
38
43
<artifactId >validation-api</artifactId >
88
93
<scope >provided</scope >
89
94
</dependency >
90
95
96
+ <dependency >
97
+ <groupId >io.airlift</groupId >
98
+ <artifactId >configuration-testing</artifactId >
99
+ <scope >test</scope >
100
+ </dependency >
101
+
91
102
<dependency >
92
103
<groupId >io.airlift</groupId >
93
104
<artifactId >testing</artifactId >
119
130
<scope >test</scope >
120
131
</dependency >
121
132
133
+ <dependency >
134
+ <groupId >org.assertj</groupId >
135
+ <artifactId >assertj-core</artifactId >
136
+ <scope >test</scope >
137
+ </dependency >
138
+
122
139
<dependency >
123
140
<groupId >org.testng</groupId >
124
141
<artifactId >testng</artifactId >
Original file line number Diff line number Diff line change 13
13
*/
14
14
package io .trino .plugin .sybase ;
15
15
16
+ import com .google .common .collect .ImmutableMap ;
17
+ import org .testng .annotations .Test ;
18
+
19
+ import java .util .Map ;
20
+
21
+ import static io .airlift .configuration .testing .ConfigAssertions .assertFullMapping ;
22
+ import static io .airlift .configuration .testing .ConfigAssertions .assertRecordedDefaults ;
23
+ import static io .airlift .configuration .testing .ConfigAssertions .recordDefaults ;
24
+
16
25
public class TestSybaseConfig
17
26
{
18
27
@ Test
@@ -29,10 +38,10 @@ public void testExplicitPropertyMappings()
29
38
int testVarcharLength = 30000 ;
30
39
String testApiKey = "xyz" ;
31
40
32
- Map <String , String > properties = new ImmutableMap .Builder <String , String >()
41
+ Map <String , String > properties = ImmutableMap .<String , String >builder ()
33
42
.put ("sybase.varchar-max-length" , String .valueOf (testVarcharLength ))
34
43
.put ("sybase.iam-api-key" , testApiKey )
35
- .build ();
44
+ .buildOrThrow ();
36
45
37
46
SybaseConfig expected = new SybaseConfig ()
38
47
.setVarcharMaxLength (testVarcharLength )
You can’t perform that action at this time.
0 commit comments