Skip to content

Commit 023cbd4

Browse files
committed
Adapt to changes in Spring Integration's Graph
See gh-47010
1 parent 5e99959 commit 023cbd4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

module/spring-boot-integration/src/main/java/org/springframework/boot/integration/endpoint/IntegrationGraphEndpoint.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ public static class GraphDescriptor implements OperationResponseBody {
7171
private final Collection<LinkNode> links;
7272

7373
GraphDescriptor(Graph graph) {
74-
this.contentDescriptor = graph.getContentDescriptor();
75-
this.nodes = graph.getNodes();
76-
this.links = graph.getLinks();
74+
this.contentDescriptor = graph.contentDescriptor();
75+
this.nodes = graph.nodes();
76+
this.links = graph.links();
7777
}
7878

7979
public Map<String, Object> getContentDescriptor() {

module/spring-boot-integration/src/test/java/org/springframework/boot/integration/endpoint/IntegrationGraphEndpointTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ void readOperationShouldReturnGraph() {
5252
Map<String, Object> contentDescriptor = new LinkedHashMap<>();
5353
Collection<IntegrationNode> nodes = new ArrayList<>();
5454
Collection<LinkNode> links = new ArrayList<>();
55-
given(graph.getContentDescriptor()).willReturn(contentDescriptor);
56-
given(graph.getNodes()).willReturn(nodes);
57-
given(graph.getLinks()).willReturn(links);
55+
given(graph.contentDescriptor()).willReturn(contentDescriptor);
56+
given(graph.nodes()).willReturn(nodes);
57+
given(graph.links()).willReturn(links);
5858
given(this.server.getGraph()).willReturn(graph);
5959
GraphDescriptor descriptor = this.endpoint.graph();
6060
then(this.server).should().getGraph();

0 commit comments

Comments
 (0)