public void testTestAssertionEndpoint1061()
{
// Test that the assertion returns true for an endpoint with an absolute address.
try
{
EndpointImpl endpoint = new EndpointImpl();
endpoint.setAddress(new URI("http://www.sample.org"));
if(!val.testAssertionEndpoint1061(endpoint, reporter))
{
fail("The testAssertionEndpoint1061 method returned false for an endpoint with an absolute address.");
}
}
catch(URISyntaxException e)
{
fail("There was a problem creating the address URI for the test method " + e);
}
catch(WSDLException e)
{
fail("There was a problem running the test assertion method " + e);
}
// Test that the assertion returns false for an endpoint with a relative address.
try
{
EndpointImpl endpoint = new EndpointImpl();
endpoint.setAddress(new URI("sample.org"));
if(val.testAssertionEndpoint1061(endpoint, reporter))
{
fail("The testAssertionEndpoint1061 method returned true for an endpoint with a relative address.");
}
}
catch(URISyntaxException e)
{
fail("There was a problem creating the address URI for the test method " + e);
}
catch(WSDLException e)
{
fail("There was a problem running the test assertion method " + e);
}
// Test that the assertion returns true for an endpoint with a null address. This will be
// caught be schema validation.
try
{
EndpointImpl endpoint = new EndpointImpl();
if(!val.testAssertionEndpoint1061(endpoint, reporter))
{
fail("The testAssertionEndpoint1061 method returned false for an endpoint with a null address.");
}
}