Class WikimediaPageFetcherTest
java.lang.Object
org.getalp.wiktionary.WikimediaPageFetcherTest
Exercises
WikimediaPageFetcher against a local stub HTTP server so that tests never reach
the real Wikimedia API.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoid
-
Constructor Details
-
WikimediaPageFetcherTest
public WikimediaPageFetcherTest()
-
-
Method Details
-
stopServer
public void stopServer() -
fetchesExistingPageAsWrappedXml
- Throws:
IOException
-
returnsNullForMissingPage
- Throws:
IOException
-
escapesXmlSensitiveCharactersInContent
- Throws:
IOException
-
throwsIOExceptionWhenServerIsUnreachable
- Throws:
IOException
-