tobydragon / tecmap

Technology Enhanced Concept Mapping for Curriculum Organization and Support
0 stars 3 forks source link

Update tests for TagSuggester #414

Closed phernandoe closed 5 years ago

phernandoe commented 5 years ago

Use static HTML instead of grabbing data from the internet

phernandoe commented 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.

phernandoe commented 5 years ago

Make getBoldTags take in a document as a parameter instead of a string as a url

phernandoe commented 5 years ago

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

phernandoe commented 5 years ago

Time taken: 1 hour