harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Zhang" <zhanghuang...@gmail.com>
Subject Re: [test] Jetty integration progress ? (was Re: [classlib] jetty based tests)
Date Mon, 18 Sep 2006 09:03:40 GMT
Hi,

It's me again. Seems no big progress on jetty. I'd like to take the job if
no one objects. Here are my suggestions:

1. jetty version:  I suggest that Harmony adopt jetty 6. Because many
5.xAPIs are deprecated in jetty 6, we'd better follow latest jetty
version.

2. location to put jetty jars: support module.

3. how to write jetty test? I suggest that we could start jetty in any test
if necessary. If we found there are heavy code duplicates, we could extract
them as utility methods in support module. So far, I'd like to write jetty
test directly in each module, because the code is rather simple, only a few
lines.[1] It's also easy to write user-customized handler for
negative tests. Let's make it work, and then make it better. :-)

Any suggestions/comments/objections?  I volunteer to upload patches when we
reach an agreement.

Best regards,
Andrew

[1]
jetty-based test example:
setUp code:
            port = Support_PortManager.getNextPort();
            Server server = new Server(port);
            ResourceHandler resource_handler=new ResourceHandler();
            resource_handler.setResourceBase("somewhere");
            server.setHandler(resource_handler);
            server.start();
tearDown code:
            server.stop();

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message