Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 60655 invoked from network); 26 Oct 2007 14:53:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2007 14:53:21 -0000 Received: (qmail 28388 invoked by uid 500); 26 Oct 2007 14:53:04 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 28338 invoked by uid 500); 26 Oct 2007 14:53:03 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 28193 invoked by uid 99); 26 Oct 2007 14:53:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 07:53:02 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 14:53:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EF96F71424F for ; Fri, 26 Oct 2007 07:52:50 -0700 (PDT) Message-ID: <19816991.1193410370978.JavaMail.jira@brutus> Date: Fri, 26 Oct 2007 07:52:50 -0700 (PDT) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3151) Reduce dependency on NetworkServerControl in TestConfiguration In-Reply-To: <23319408.1193377550812.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537979 ] Daniel John Debrunner commented on DERBY-3151: ---------------------------------------------- Was there some recent change that caused this? I used to run tests without derbynet.jar with no problems. That's alos how the J2ME foundation runs are usually made. There is a test method to see if the network server is available, Derby.hasServer. > Reduce dependency on NetworkServerControl in TestConfiguration > -------------------------------------------------------------- > > Key: DERBY-3151 > URL: https://issues.apache.org/jira/browse/DERBY-3151 > Project: Derby > Issue Type: Improvement > Components: Test > Affects Versions: 10.4.0.0 > Reporter: Kristian Waagan > Priority: Minor > Attachments: derby-3151-1a-proposal.diff > > > Code has been added in TestConfiguration to allow for starting and stopping a Derby network server. > Even if you know will not need this functionality, or you simply don't want to have this functionality available, you must include derbynet.jar (or point to classes/). > I think this dependency should be reduced, by not having any instance variables and by not importing the class with an explicit import statement. The existing instance variables are not used. > With this planned change, you can run tests without including derbynet.jar on the classpath, as long as they don't call 'startNetworkServer' or 'stopNetworkServer'. Most often these methods will be called by a decorator. > The downside of this change, is that you won't get any error messages before the mentioned methods are actually executed. > A typical error message: > Failed to invoke suite():java.lang.NoClassDefFoundError: org/apache/derby/drda/NetworkServerControl > I'm sure there are other solutions as well, but this one is really easy. > Any opinions on this change? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.