File tree Expand file tree Collapse file tree 6 files changed +8
-68
lines changed
src/test/java/io/spring/creekfunctions
src/main/java/io/spring/creekproducer Expand file tree Collapse file tree 6 files changed +8
-68
lines changed Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >org.springframework.boot</groupId >
7
7
<artifactId >spring-boot-starter-parent</artifactId >
8
- <version >3.0.0-SNAPSHOT </version >
8
+ <version >3.0.0</version >
9
9
<relativePath /> <!-- lookup parent from repository -->
10
10
</parent >
11
11
<groupId >io.spring</groupId >
18
18
<spring-cloud .version>2022.0.0-SNAPSHOT</spring-cloud .version>
19
19
</properties >
20
20
<dependencies >
21
- <dependency >
22
- <groupId >org.springframework.boot</groupId >
23
- <artifactId >spring-boot-starter-amqp</artifactId >
24
- </dependency >
25
- <dependency >
26
- <groupId >org.springframework.cloud</groupId >
27
- <artifactId >spring-cloud-stream</artifactId >
28
- </dependency >
29
21
<dependency >
30
22
<groupId >org.springframework.cloud</groupId >
31
23
<artifactId >spring-cloud-stream-binder-rabbit</artifactId >
32
24
</dependency >
33
- <dependency >
34
- <groupId >org.springframework.cloud</groupId >
35
- <artifactId >spring-cloud-function-context</artifactId >
36
- </dependency >
37
25
<dependency >
38
26
<groupId >io.spring</groupId >
39
27
<artifactId >creekfunctions</artifactId >
44
32
<artifactId >spring-boot-starter-test</artifactId >
45
33
<scope >test</scope >
46
34
</dependency >
47
- <dependency >
48
- <groupId >org.springframework.amqp</groupId >
49
- <artifactId >spring-rabbit-test</artifactId >
50
- <scope >test</scope >
51
- </dependency >
52
35
<dependency >
53
36
<groupId >org.springframework.cloud</groupId >
54
- <artifactId >spring-cloud-stream</artifactId >
37
+ <artifactId >spring-cloud-stream-test-binder </artifactId >
55
38
<scope >test</scope >
56
- <classifier >test-binder</classifier >
57
- <type >test-jar</type >
58
- <version >4.0.0-SNAPSHOT</version >
59
39
</dependency >
60
40
</dependencies >
61
41
<dependencyManagement >
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >org.springframework.boot</groupId >
7
7
<artifactId >spring-boot-starter-parent</artifactId >
8
- <version >3.0.0-SNAPSHOT </version >
8
+ <version >3.0.0</version >
9
9
<relativePath /> <!-- lookup parent from repository -->
10
10
</parent >
11
11
<groupId >io.spring</groupId >
Original file line number Diff line number Diff line change 18
18
19
19
import java .util .List ;
20
20
21
- import com .fasterxml .jackson .databind .ObjectMapper ;
22
- import com .fasterxml .jackson .datatype .jsr310 .JavaTimeModule ;
23
21
import org .junit .jupiter .api .BeforeEach ;
24
22
import org .junit .jupiter .api .Test ;
25
23
28
26
public class TransformCreekMeasurementTests {
29
27
30
28
TransformCreekMeasurement transformCreekMeasurement ;
31
- ObjectMapper objectMapper ;
32
29
33
30
@ BeforeEach
34
31
public void setup () {
35
32
this .transformCreekMeasurement = new TransformCreekMeasurement ();
36
- this .objectMapper = new ObjectMapper ();
37
- this .objectMapper .registerModule (new JavaTimeModule ());
38
33
}
39
34
40
35
@ Test
Original file line number Diff line number Diff line change 18
18
<spring-cloud .version>2022.0.0-SNAPSHOT</spring-cloud .version>
19
19
</properties >
20
20
<dependencies >
21
- <dependency >
22
- <groupId >org.springframework.boot</groupId >
23
- <artifactId >spring-boot-starter-amqp</artifactId >
24
- </dependency >
25
- <dependency >
26
- <groupId >org.springframework.cloud</groupId >
27
- <artifactId >spring-cloud-stream</artifactId >
28
- </dependency >
29
21
<dependency >
30
22
<groupId >org.springframework.cloud</groupId >
31
23
<artifactId >spring-cloud-stream-binder-rabbit</artifactId >
32
24
</dependency >
33
- <dependency >
34
- <groupId >org.springframework.cloud</groupId >
35
- <artifactId >spring-cloud-function-context</artifactId >
36
- </dependency >
37
25
<dependency >
38
26
<groupId >org.springframework.boot</groupId >
39
27
<artifactId >spring-boot-starter-test</artifactId >
40
28
<scope >test</scope >
41
29
</dependency >
42
- <dependency >
43
- <groupId >org.springframework.amqp</groupId >
44
- <artifactId >spring-rabbit-test</artifactId >
45
- <scope >test</scope >
46
- </dependency >
47
30
<dependency >
48
31
<groupId >org.springframework.cloud</groupId >
49
- <artifactId >spring-cloud-stream</artifactId >
32
+ <artifactId >spring-cloud-stream-test-binder </artifactId >
50
33
<scope >test</scope >
51
- <classifier >test-binder</classifier >
52
- <type >test-jar</type >
53
- <version >4.0.0-SNAPSHOT</version >
54
34
</dependency >
55
35
</dependencies >
56
36
<dependencyManagement >
Original file line number Diff line number Diff line change 10
10
import org .springframework .web .client .RestTemplate ;
11
11
12
12
@ SpringBootApplication
13
- public class CreekproducerApplication {
13
+ public class CreekProducerConfiguration {
14
14
15
15
public static void main (String [] args ) {
16
- SpringApplication .run (CreekproducerApplication .class , args );
16
+ SpringApplication .run (CreekProducerConfiguration .class , args );
17
17
}
18
18
19
19
@ Bean
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >org.springframework.boot</groupId >
7
7
<artifactId >spring-boot-starter-parent</artifactId >
8
- <version >3.0.0-SNAPSHOT </version >
8
+ <version >3.0.0</version >
9
9
<relativePath /> <!-- lookup parent from repository -->
10
10
</parent >
11
11
<groupId >io.spring</groupId >
18
18
<spring-cloud .version>2022.0.0-SNAPSHOT</spring-cloud .version>
19
19
</properties >
20
20
<dependencies >
21
- <dependency >
22
- <groupId >org.springframework.boot</groupId >
23
- <artifactId >spring-boot-starter-amqp</artifactId >
24
- </dependency >
25
- <dependency >
26
- <groupId >org.springframework.cloud</groupId >
27
- <artifactId >spring-cloud-stream</artifactId >
28
- </dependency >
29
21
<dependency >
30
22
<groupId >org.springframework.cloud</groupId >
31
23
<artifactId >spring-cloud-stream-binder-rabbit</artifactId >
44
36
<artifactId >spring-boot-starter-test</artifactId >
45
37
<scope >test</scope >
46
38
</dependency >
47
- <dependency >
48
- <groupId >org.springframework.amqp</groupId >
49
- <artifactId >spring-rabbit-test</artifactId >
50
- <scope >test</scope >
51
- </dependency >
52
39
<dependency >
53
40
<groupId >org.springframework.cloud</groupId >
54
- <artifactId >spring-cloud-stream</artifactId >
41
+ <artifactId >spring-cloud-stream-test-binder </artifactId >
55
42
<scope >test</scope >
56
- <classifier >test-binder</classifier >
57
- <type >test-jar</type >
58
43
</dependency >
59
44
</dependencies >
60
45
<dependencyManagement >
You can’t perform that action at this time.
0 commit comments