Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import org.testng.annotations.Test;
import java.io.IOException;
import java.net.URISyntaxException;
import static org.apache.http.HttpStatus.SC_OK;
import static org.assertj.core.api.Assertions.assertThat;
public class DownloadNoSelenium {
@Test
public void downloadNoSelenium() throws URISyntaxException, IOException {
Request request = new Request();
String linkToCheck = "http://www.developsense.com/courses/RapidSoftwareTesting.pdf";
request.setURIToCheck(linkToCheck);
assertThat(request.getHTTPStatusCodeFromResponse()).isEqualTo(SC_OK);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment