Skip to content

Commit b7953a0

Browse files
committed
update to 3.6.0-m2451
1 parent 333d2da commit b7953a0

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<!-- DEPENDENCIES VERSION -->
2525
<jdk.version>21</jdk.version>
26-
<cds.services.version>3.6.0-m2450</cds.services.version>
26+
<cds.services.version>3.6.0-m2451</cds.services.version>
2727
<cloud.sdk.version>5.13.0</cloud.sdk.version>
2828
<xsuaa.version>3.5.3</xsuaa.version>
2929
<cf-java-logging-support.version>3.8.4</cf-java-logging-support.version>

srv/src/test/java/my/bookshop/GenreHierarchyTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import java.net.URI;
99

10-
import org.junit.jupiter.api.Disabled;
1110
import org.junit.jupiter.api.Test;
1211
import org.springframework.beans.factory.annotation.Autowired;
1312
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
@@ -197,12 +196,11 @@ void testFilterNotExpanded() throws Exception {
197196
.andExpect(jsonPath("$.value[1]").doesNotExist());
198197
}
199198

200-
@Disabled
201199
@Test
202200
@WithMockUser(username = "admin")
203201
void testFilterExpandLevels() throws Exception {
204202
String expandLevelsJson = """
205-
[{"NodeID":10,"Levels":1},{"NodeID":20,"Levels":1}]\
203+
[{"NodeID":100,"Levels":1},{"NodeID":200,"Levels":1}]\
206204
""";
207205
String unencoded = genresURI + "?$select=DistanceFromRoot,DrillState,ID,LimitedDescendantCount,name"
208206
+ "&$apply=ancestors($root/GenreHierarchy,GenreHierarchy,ID,filter(name eq 'Autobiography'),keep start)/orderby(name)"
@@ -212,7 +210,7 @@ void testFilterExpandLevels() throws Exception {
212210
URI uri = URI.create(uriString);
213211
client.perform(get(uri))
214212
.andExpect(status().isOk())
215-
.andExpect(jsonPath("$.value[0].ID").value(20))
213+
.andExpect(jsonPath("$.value[0].ID").value(200))
216214
.andExpect(jsonPath("$.value[0].name").value("Non-Fiction"))
217215
.andExpect(jsonPath("$.value[0].DrillState").value("expanded"))
218216
.andExpect(jsonPath("$.value[0].DistanceFromRoot").value(0))

0 commit comments

Comments
 (0)