I mis-spoke. I can provide actual sample code Monday.
Roughly speaking, the test code is like this:
class ThirdpartyAppletTest
{
public void setup ()
{
vendorsApplet = new VendorsApplet ();
adapter = new AppletAdapter();
vendorsApplet.setStub (adapter);
}
testSort () throws Exception
{
// These work correctly
login ();
WebResponse response= navigateToTestPage ();
// call to applet returns
int result = adapter.setUrl (response.getUrl());
// expectedValue should be 0 (success) but is 1
assertEquals (result, expectedValue);
// this works correctly
logoff ();
}
}
I am sorry for the mis-statement in the initial query - I had originally placed it in the wrong forum and did not change it when I relocated it.
Main Topics
Browse All Topics





by: objectsPosted on 2005-01-07 at 16:19:39ID: 12989748
can you post some of the relevant code