?meterware? WebConversation jar
Meterware, <http://www2.meterware.com:8080/> sponsors HttpUnit?
<http://httpunit.sourceforge.net/doc/api/com/meterware/httpunit/
WebConversation.html>
This is part of the official http unit, in the JAR? I ask becuase I
downloaded <http://mvnrepository.com/artifact/httpunit/httpunit/1.6.2>
(haven't got ivy fully functional) and cannot seem to import the
requisite class.
I'm getting "Cannot find symbol" for WebConversation, as it's not
imported, because it's not in the jar which I downloaded, and am a bit
leery about running about downloading unknown (to me) JAR's.
package auth;
import junit.framework.TestCase;
public class CarCruisesTest extends TestCase {
public void testGetPAJuneCarcruises() {
String sURL = "http://carcruises.com/" +
"cruise_list.asp?month_select=6&" +
"state=Pennsylvania";
try {
// Create the conversation object,
// which will maintain state for us
WebConversation conversation = new WebConversation();
WebRequest request = new GetMethodWebRequest(sURL);
WebResponse response = conversation.getResponse(request);
} catch (Exception ex) {
ex.printStackTrace();
// Fail the test if an exception is thrown.
super.fail(ex.getMessage());
}
}
}
thanks,
Thufir