java - Unit testing for downloads -


I am writing a Java program that downloads and then processes many webpages without killing the remote server What is the best practice to test a component of the downloading program?

Therefore the component that downloads and components that process the page must be different. At any time you are having trouble testing a piece of code of the unit, it is an indication that you are trying to do a lot in one component.

Once you do this, you test part of the processing, meaning that the processor component takes only one string in the form of inputstream or input

the download part For, you probably need integration testing. Integration tests are often more involved and a local web server (Mewen can do this) will require installation, or at least one file: URL.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -