@@ -39,23 +39,6 @@ public static void oneTimeSetUp() throws Exception {
39
39
stack = Contentstack .stack (appContext , DEFAULT_API_KEY , DEFAULT_DELIVERY_TOKEN , DEFAULT_ENV , config );
40
40
}
41
41
42
-
43
- @ Test ()
44
- public void test_A_getAllAssetsToSetAssetUID () {
45
- final AssetLibrary assetLibrary = stack .assetLibrary ();
46
- assetLibrary .fetchAll (new FetchAssetsCallback () {
47
- @ Override
48
- public void onCompletion (ResponseType responseType , List <Asset > assets , Error error ) {
49
- if (error == null ) {
50
- Log .d (TAG , "response: " + assets .get (0 ).getAssetUid ());
51
- assetUid = assets .get (0 ).getAssetUid ();
52
- Log .e (assetUid , assetUid );
53
- }
54
- }
55
- });
56
-
57
- }
58
-
59
42
@ Test
60
43
public void test_B_VerifyAssetUID () {
61
44
final Asset asset = stack .asset (assetUid );
@@ -89,28 +72,6 @@ public void onCompletion(ResponseType responseType, Error error) {
89
72
});
90
73
}
91
74
92
- @ Test
93
- public void test_D_AssetLibrary_fetch () {
94
- final AssetLibrary assetLibrary = stack .assetLibrary ();
95
- assetLibrary .fetchAll (new FetchAssetsCallback () {
96
- @ Override
97
- public void onCompletion (ResponseType responseType , List <Asset > assets , Error error ) {
98
- if (error == null ) {
99
- assets .forEach (asset -> {
100
- Log .d (TAG , "----Test--Asset-D--Success----" + asset .toJSON ());
101
- Log .d (TAG , "----Test--Asset-D--Success----" + asset .getFileType ());
102
- Log .d (TAG , "----Test--Asset-D--Success----" + asset .getCreatedBy ());
103
- Log .d (TAG , "----Test--Asset-D--Success----" + asset .getUpdatedBy ());
104
- Log .d (TAG , "----Test--Asset-D--Success----" + asset .getFileName ());
105
- Log .d (TAG , "----Test--Asset-D--Success----" + asset .getFileSize ());
106
- Log .d (TAG , "----Test--Asset-D--Success----" + asset .getAssetUid ());
107
- Log .d (TAG , "----Test--Asset-D--Success----" + asset .getUrl ());
108
- });
109
- }
110
- }
111
- });
112
- }
113
-
114
75
@ Test
115
76
public void test_E_AssetLibrary_includeCount_fetch () {
116
77
final AssetLibrary assetLibrary = stack .assetLibrary ();
@@ -195,21 +156,6 @@ public void test_GCP_NA() throws Exception {
195
156
stack = Contentstack .stack (appContext , DEFAULT_API_KEY , DEFAULT_DELIVERY_TOKEN , DEFAULT_ENV , config );
196
157
}
197
158
198
- @ Test
199
- public void test_I_fetch_asset_by_title () {
200
- final AssetLibrary assetLibrary = stack .assetLibrary ().where ("title" , "iot-icon.png" );
201
- assetLibrary .fetchAll (new FetchAssetsCallback () {
202
- @ Override
203
- public void onCompletion (ResponseType responseType , List <Asset > assets , Error error ) {
204
- if (error == null ) {
205
- for (Asset asset : assets ) {
206
- Log .d ("RESULT:" , "resp" + asset .json );
207
- }
208
- }
209
- }
210
- });
211
- }
212
-
213
159
@ Test
214
160
public void test_J_fetch_asset_by_tags () {
215
161
final AssetLibrary assetLibrary = stack .assetLibrary ().where ("tags" ,"tag1" );
@@ -240,18 +186,6 @@ public void onCompletion(ResponseType responseType, List<Asset> assets, Error er
240
186
});
241
187
}
242
188
243
- @ Test
244
- public void test_L_fetch_asset_invalid () {
245
- final AssetLibrary assetLibrary = stack .assetLibrary ().where ("title" ,null );
246
- assetLibrary .fetchAll (new FetchAssetsCallback () {
247
- @ Override
248
- public void onCompletion (ResponseType responseType , List <Asset > assets , Error error ) {
249
- Log .e ("RESULT:" , "ERROR:" + error .errorMessage );
250
- }
251
- });
252
-
253
- }
254
-
255
189
@ Test
256
190
public void test_M_fetch_asset_empty_title () {
257
191
final AssetLibrary assetLibrary = stack .assetLibrary ().where ("title" ,"" );
0 commit comments