File tree Expand file tree Collapse file tree
kotlin/com/github/mgramin/sqlboot/model/connection Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,20 +44,20 @@ internal class EndpointListTest {
4444 lateinit var endpointList: EndpointList
4545
4646 @ParameterizedTest
47- @ValueSource(strings = [" test " , " dev " , " prod " ])
47+ @ValueSource(strings = [" h2 " ])
4848 fun getConnectionByName (connectionName : String ) {
4949 assertEquals(connectionName, endpointList.getByName(connectionName).name())
5050 }
5151
5252 @ParameterizedTest
53- @ValueSource(strings = [" test " , " dev " , " prod " ])
53+ @ValueSource(strings = [" h2 " ])
5454 fun getConnectionsByMask (connectionMask : String ) {
5555 assertEquals(connectionMask, endpointList.getByMask(connectionMask).first().name())
5656 }
5757
5858 @Test
5959 fun getConnections () {
60- assertEquals(4 , endpointList.endpoints.count())
60+ assertEquals(1 , endpointList.endpoints.count())
6161 }
6262
6363}
Original file line number Diff line number Diff line change 1717 "visible": false,
1818 "description": "Embedded db for unit tests only"
1919 }
20- - name : dev
21- host : 127.0.0.1
22- dialect : h2
23- baseFolder : file:conf/h2/md/database
24- driverClassName : org.h2.Driver
25- properties : >
26- {
27- "url": "jdbc:h2:mem:;INIT=RUNSCRIPT FROM 'classpath:schema.sql';",
28- "visible": false,
29- "color": "green",
30- "description": "Develop demo db",
31- "css_class": "fas fa-fw fa-2x fa-tools"
32- }
33- - name : test
34- host : 127.0.0.1
35- dialect : h2
36- baseFolder : file:conf/h2/md/database
37- driverClassName : org.h2.Driver
38- properties : >
39- {
40- "url": "jdbc:h2:mem:;INIT=RUNSCRIPT FROM 'classpath:schema.sql';",
41- "visible": false,
42- "color": "orange",
43- "description": "Testing demo db",
44- "css_class": "fas fa-fw fa-2x fa-bug"
45- }
46- - name : prod
47- host : 127.0.0.1
48- dialect : h2
49- baseFolder : file:conf/h2/md/database
50- driverClassName : org.h2.Driver
51- properties : >
52- {
53- "url": "jdbc:h2:mem:;INIT=RUNSCRIPT FROM 'classpath:schema.sql';",
54- "visible": false,
55- "color": "red",
56- "description": "Production demo db",
57- "css_class": "fas fa-fw fa-2x fa-bicycle"
58- }
5920
6021spring :
6122 jmx :
You can’t perform that action at this time.
0 commit comments