Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 87299 invoked from network); 12 Nov 2007 14:14:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2007 14:14:14 -0000 Received: (qmail 7683 invoked by uid 500); 12 Nov 2007 14:14:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 7638 invoked by uid 500); 12 Nov 2007 14:14:02 -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 7629 invoked by uid 99); 12 Nov 2007 14:14:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 06:14:02 -0800 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; Mon, 12 Nov 2007 14:14:58 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8980E71420B for ; Mon, 12 Nov 2007 06:13:51 -0800 (PST) Message-ID: <15775839.1194876831560.JavaMail.jira@brutus> Date: Mon, 12 Nov 2007 06:13:51 -0800 (PST) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-2031) Convert derbynet/testProtocol.java to JUnit In-Reply-To: <12104694.1162486458063.JavaMail.root@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-2031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan updated DERBY-2031: ----------------------------------- Assignee: Kristian Waagan (was: Julius Stroffek) I hijacked this issue, since there has been no activity on it for a long time. I'm taking another stab at rewriting the test into JUnit. I will utilize the package-private test "framework", and because this is far from complete I will develop the JUnit version in parallel to the existing one. The main problems are still running the package private tests in a Jar-file environment due to package sealing. > Convert derbynet/testProtocol.java to JUnit > ------------------------------------------- > > Key: DERBY-2031 > URL: https://issues.apache.org/jira/browse/DERBY-2031 > Project: Derby > Issue Type: Improvement > Components: Network Server, Test > Affects Versions: 10.3.1.4 > Reporter: Knut Anders Hatlen > Assignee: Kristian Waagan > Priority: Minor > Attachments: d2031.diff, d2031.stat > > > testProtocol.java executes DRDA commands from a file written in a special-purpose language. The statements are very much like assertions, so it should be fairly easy to convert the test to JUnit. > Suggested approach: Change the interpreter (TestProto.java) so that is uses Assert.fail() instead of System.err.println() and System.exit(), and BaseTestCase.println() instead of System.out.println(). It should also use TestConfiguration to get the host name and port number. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.