* but Tomcat 3.x is not.
*/
public void testMethodsOptions() {
HttpClient client = new HttpClient();
OptionsMethod method = new OptionsMethod("/");
try {
client.getHostConfiguration().setHost(host, port, "http");
client.executeMethod(method);
} catch (Throwable t) {
t.printStackTrace();
fail("Unable to execute method : " + t.toString());
}
Enumeration methodsAllowed = method.getAllowedMethods();
// This enumeration musn't be empty
assertTrue("No HTTP method allowed : result of OPTIONS is incorrect "
+ "(make sure the webserver running on port " + port
+ " supports OPTIONS properly)",
methodsAllowed.hasMoreElements());