Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 6890 invoked from network); 7 May 2009 18:49:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 May 2009 18:49:17 -0000 Received: (qmail 77415 invoked by uid 500); 7 May 2009 18:49:17 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 77352 invoked by uid 500); 7 May 2009 18:49:16 -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 77344 invoked by uid 99); 7 May 2009 18:49:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 18:49:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 18:49:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9C46D234C044 for ; Thu, 7 May 2009 11:48:45 -0700 (PDT) Message-ID: <26324279.1241722125638.JavaMail.jira@brutus> Date: Thu, 7 May 2009 11:48:45 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-1115) Write a test that ensures that code that translates a message id into a message does so correctly In-Reply-To: <381515056.1142371299608.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-1115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden closed DERBY-1115. --------------------------------- Resolution: Fixed Closing this as fixed as there was a test written. That said there are still some problems with the test. This is filed as DERBY-1567, but there is no need to keep both issues open. > Write a test that ensures that code that translates a message id into a message does so correctly > ------------------------------------------------------------------------------------------------- > > Key: DERBY-1115 > URL: https://issues.apache.org/jira/browse/DERBY-1115 > Project: Derby > Issue Type: Test > Components: Test > Reporter: David Van Couvering > Priority: Minor > Attachments: genClient1.sed, genClient2.sed, generateClientMessageTest.sh, README, TestClientMessages.java > > > After finding, in my and others' code, a number of situations where we used a message id with no matching message, or used the incorrect number of parameters for an internationalized message, I became determined to write a test that tries to track down these bugs, a kind of "i18n lint". > It's very hard, almost impossible, to test these invocations of message formatting through a normal unit test, because basically you have to write a full suite of negative tests. > This bug is a placeholder for some work I am doing to accomplish this task using code parsing rather than trying to execute negative tests. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.