This repository was archived by the owner on May 14, 2025. It is now read-only.
File tree 3 files changed +10
-22
lines changed
spring-cloud-dataflow-server
spring-cloud-dataflow-server-core
src/test/java/org/springframework/cloud/dataflow/server/config
3 files changed +10
-22
lines changed Original file line number Diff line number Diff line change 119
119
</exclusion >
120
120
</exclusions >
121
121
</dependency >
122
+ <dependency >
123
+ <groupId >com.h2database</groupId >
124
+ <artifactId >h2</artifactId >
125
+ <optional >true</optional >
126
+ <scope >provided</scope >
127
+ </dependency >
122
128
<dependency >
123
129
<groupId >org.springframework.boot</groupId >
124
130
<artifactId >spring-boot-starter-test</artifactId >
138
144
<artifactId >jsonassert</artifactId >
139
145
<scope >test</scope >
140
146
</dependency >
141
- <dependency >
142
- <groupId >com.h2database</groupId >
143
- <artifactId >h2</artifactId >
144
- <optional >true</optional >
145
- </dependency >
146
147
<dependency >
147
148
<groupId >com.oracle.ojdbc</groupId >
148
149
<artifactId >ojdbc8</artifactId >
Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .cloud .dataflow .server .config ;
18
18
19
- import java .net .BindException ;
20
-
21
19
import org .h2 .tools .Server ;
22
20
import org .junit .jupiter .api .Test ;
23
21
@@ -112,16 +110,6 @@ void serverDoesNotStartWhenUrlIsH2ButInvalidForm() {
112
110
.hasMessage ("Port value out of range: 99999" ));
113
111
}
114
112
115
- @ Test
116
- void serverDoesNotStartWhenPortIsReserved () {
117
- runner .withPropertyValues (
118
- "spring.datasource.url=jdbc:h2:tcp://localhost:1/mem:dataflow" ,
119
- "spring.dataflow.embedded.database.enabled=true" )
120
- .run (context -> assertThat (context )
121
- .getFailure ().getRootCause ().isInstanceOf (BindException .class )
122
- .hasMessageStartingWith ("Permission denied" ));
123
- }
124
-
125
113
@ Test
126
114
void serverDoesNotStartWhenH2NotOnClasspath () {
127
115
runner .withClassLoader (new FilteredClassLoader (Server .class )).
Original file line number Diff line number Diff line change 43
43
<groupId >io.fabric8</groupId >
44
44
<artifactId >kubernetes-client</artifactId >
45
45
</dependency >
46
+ <dependency >
47
+ <groupId >com.h2database</groupId >
48
+ <artifactId >h2</artifactId >
49
+ </dependency >
46
50
<dependency >
47
51
<groupId >org.springframework.boot</groupId >
48
52
<artifactId >spring-boot-starter-test</artifactId >
118
122
<artifactId >mssqlserver</artifactId >
119
123
<scope >test</scope >
120
124
</dependency >
121
- <dependency >
122
- <groupId >com.h2database</groupId >
123
- <artifactId >h2</artifactId >
124
- <scope >test</scope >
125
- </dependency >
126
125
</dependencies >
127
126
128
127
<build >
You can’t perform that action at this time.
0 commit comments