Skip to content

Commit 8415115

Browse files
🪴 LICENSE file updated
1 parent abcb88e commit 8415115

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ void testAssetRemoveHeader() {
6969

7070
@Test
7171
void testAssetSortAscending() {
72-
AssetLibrary assetLibrary = stack.assetLibrary();
73-
assetLibrary.sort("ascending", AssetLibrary.ORDERBY.ASCENDING);
72+
AssetLibrary assetLibrary = stack.assetLibrary().sort("ascending", AssetLibrary.ORDERBY.ASCENDING);
7473
Assertions.assertFalse(assetLibrary.headers.containsKey("asc"));
7574
logger.info("passed...");
7675
}
@@ -85,8 +84,7 @@ void testAssetSortDescending() {
8584

8685
@Test
8786
void testAssetIncludeCount() {
88-
AssetLibrary assetLibrary = stack.assetLibrary();
89-
assetLibrary.includeCount();
87+
AssetLibrary assetLibrary = stack.assetLibrary().includeCount();
9088
Assertions.assertFalse(assetLibrary.headers.containsKey("include_count"));
9189
logger.info("passed...");
9290
}
@@ -101,16 +99,14 @@ void testAssetIncludeRelativeUrl() {
10199

102100
@Test
103101
void testAssetGetCount() {
104-
AssetLibrary assetLibrary = stack.assetLibrary();
105-
assetLibrary.includeRelativeUrl();
102+
AssetLibrary assetLibrary = stack.assetLibrary().includeRelativeUrl();
106103
Assertions.assertEquals(0, assetLibrary.getCount());
107104
logger.info("passed...");
108105
}
109106

110107
@Test
111108
void testIncludeFallback() {
112-
AssetLibrary assetLibrary = stack.assetLibrary();
113-
assetLibrary.includeFallback();
109+
AssetLibrary assetLibrary = stack.assetLibrary().includeFallback();
114110
Assertions.assertFalse(assetLibrary.headers.containsKey("include_fallback"));
115111
logger.info("passed...");
116112
}

0 commit comments

Comments
 (0)