Skip to content

Commit 10f0bd2

Browse files
committed
Enhance tests by adding assertions for entry parameters and headers; remove disabled test for asset URL update
1 parent eed871f commit 10f0bd2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/test/java/com/contentstack/sdk/TestEntry.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,9 @@ void testEntryPassConfigBranchIncludeBranch() throws IllegalAccessException {
552552
entry.includeBranch().fetch(new EntryResultCallBack() {
553553
@Override
554554
public void onCompletion(ResponseType responseType, Error error) {
555-
// logger.info(entry.headers + "");
555+
Assertions.assertTrue(entry.params.has("include_branch"));
556+
Assertions.assertEquals(true, entry.params.opt("include_branch"));
557+
Assertions.assertTrue(entry.headers.containsKey("branch"));
556558
}
557559
});
558560
Assertions.assertTrue(entry.params.has("include_branch"));

src/test/java/com/contentstack/sdk/TestStack.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,6 @@ public void onCompletion(SyncStack response, Error error) {
387387
});
388388
}
389389
@Test
390-
@Disabled
391390
@Order(43)
392391
void testAsseturlupdate() throws IllegalAccessException {
393392
Entry entry = stack.contentType(CONTENT_TYPE).entry(entryUid).includeEmbeddedItems();

0 commit comments

Comments
 (0)