Skip to content

Commit

Permalink
tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaileshmishra committed Aug 17, 2023
1 parent ba5e302 commit 51c2765
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/test/java/com/contentstack/sdk/TestEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ void entryGetAsset() {
@Test
@Order(42)
void entryExcept() {
String[] arrField = {"fieldOne", "fieldTwo", "fieldThree"};
String[] arrField = { "fieldOne", "fieldTwo", "fieldThree" };
Entry initEntry = stack.contentType("product").entry(entryUid).except(arrField);
Assertions.assertEquals(3, initEntry.exceptFieldArray.length());
logger.info("passed...");
Expand All @@ -374,7 +374,7 @@ void entryIncludeReference() {
@Test
@Order(44)
void entryIncludeReferenceList() {
String[] arrField = {"fieldOne", "fieldTwo", "fieldThree"};
String[] arrField = { "fieldOne", "fieldTwo", "fieldThree" };
Entry initEntry = stack.contentType("product").entry(entryUid).includeReference(arrField);
Assertions.assertEquals(3, initEntry.referenceArray.length());
Assertions.assertTrue(initEntry.params.has("include[]"));
Expand All @@ -384,7 +384,7 @@ void entryIncludeReferenceList() {
@Test
@Order(45)
void entryOnlyList() {
String[] arrField = {"fieldOne", "fieldTwo", "fieldThree"};
String[] arrField = { "fieldOne", "fieldTwo", "fieldThree" };
Entry initEntry = stack.contentType("product").entry(entryUid);
initEntry.only(arrField);
Assertions.assertEquals(3, initEntry.objectUidForOnly.length());
Expand Down Expand Up @@ -503,7 +503,8 @@ void testEntryIncludeOwner() {
void testEntryPassConfigBranchIncludeBranch() throws IllegalAccessException {
Config config = new Config();
config.setBranch("feature_branch");
Stack branchStack = Contentstack.stack(Credentials.API_KEY, Credentials.DELIVERY_TOKEN, Credentials.ENVIRONMENT, config);
Stack branchStack = Contentstack.stack(Credentials.API_KEY, Credentials.DELIVERY_TOKEN, Credentials.ENVIRONMENT,
config);
Entry entry = branchStack.contentType("product").entry(entryUid);
entry.includeBranch().fetch(new EntryResultCallBack() {
@Override
Expand Down

0 comments on commit 51c2765

Please sign in to comment.