Refactor JsoupParserTest
package com.baeldung.jsoup;
-import java.io.IOException;
import org.jsoup.HttpStatusException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.parser.Tag;
import org.jsoup.select.Elements;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
+import java.io.IOException;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
public class JsoupParserTest {
Document doc;
@@ -70,7 +72,7 @@ public class JsoupParserTest {
Elements children = firstSection.children();
Elements siblings = firstSection.siblingElements();
- sections.stream().forEach(el -> System.out.println("section: " + el));
+ sections.forEach(el -> System.out.println("section: " + el));
}
@Test
