Closed phernandoe closed 5 years ago
Managed to find and resolve problem regarding the getBoldTags function, however changing the unit tests for this function to work on local html files would require altering how the function would work. Currently, reading an HTML file from the web requires the .connect function from Jsoup. Reading local HTML files uses a different function (not .connect). A new method that uses .parse would need to be created in order to do unit tests on local files.
Make getBoldTags take in a document as a parameter instead of a string as a url
Make java class with two strings containing source code for LearnCPP pages for testing. These pages should be parsed in with Jsoup to create documents that are passed in to the LearnCPPUtil functions for testing
Time taken: 1 hour
Use static HTML instead of grabbing data from the internet