Skip to content

Commit d2cd5da

Browse files
shaileshmishrashaileshmishra
authored andcommitted
🎉 v1.0.0 release
1 parent 8127ba1 commit d2cd5da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/java/ReadResource.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ public Attributes returnEntryAttributes(JSONObject entryObject){
3737
}
3838

3939
Document html = null;
40+
assert rteArray != null;
4041
for (Object RTE : rteArray) {
4142
String stringify = (String) RTE;
4243
html = Jsoup.parse(stringify);
4344
}
4445

46+
assert html != null;
4547
Elements embeddedEntries = html.body().getElementsByClass("embedded-entry");
4648
Attributes attributes = embeddedEntries.get(0).attributes();
4749
return embeddedEntries.get(0).attributes();
@@ -56,11 +58,13 @@ public Attributes returnAssetAttributes(JSONObject entryObject){
5658
}
5759

5860
Document html = null;
61+
assert rteArray != null;
5962
for (Object RTE : rteArray) {
6063
String stringify = (String) RTE;
6164
html = Jsoup.parse(stringify);
6265
}
6366

67+
assert html != null;
6468
Elements embeddedEntries = html.body().getElementsByClass("embedded-asset");
6569
Attributes attributes = embeddedEntries.get(0).attributes();
6670
return embeddedEntries.get(0).attributes();

0 commit comments

Comments
 (0)