From depot-cvs-return-374-apmail-incubator-depot-cvs-archive=incubator.apache.org@incubator.apache.org Sun May 02 18:18:21 2004 Return-Path: Delivered-To: apmail-incubator-depot-cvs-archive@www.apache.org Received: (qmail 14217 invoked from network); 2 May 2004 18:18:21 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 May 2004 18:18:21 -0000 Received: (qmail 83307 invoked by uid 500); 2 May 2004 18:18:12 -0000 Delivered-To: apmail-incubator-depot-cvs-archive@incubator.apache.org Received: (qmail 83290 invoked by uid 500); 2 May 2004 18:18:12 -0000 Mailing-List: contact depot-cvs-help@incubator.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: depot-dev@incubator.apache.org Delivered-To: mailing list depot-cvs@incubator.apache.org Received: (qmail 83274 invoked from network); 2 May 2004 18:18:12 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 2 May 2004 18:18:12 -0000 Received: (qmail 14209 invoked by uid 65534); 2 May 2004 18:18:21 -0000 Date: 2 May 2004 18:18:21 -0000 Message-ID: <20040502181821.14205.qmail@minotaur.apache.org> From: ajack@apache.org To: depot-cvs@incubator.apache.org Subject: svn commit: rev 10492 - incubator/depot/trunk/update/src/test/org/apache/depot/update/util/text X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Author: ajack Date: Sun May 2 11:18:20 2004 New Revision: 10492 Modified: incubator/depot/trunk/update/src/test/org/apache/depot/update/util/text/MessageTests.java Log: Fixed obsolete test to really be one. Modified: incubator/depot/trunk/update/src/test/org/apache/depot/update/util/text/MessageTests.java ============================================================================== --- incubator/depot/trunk/update/src/test/org/apache/depot/update/util/text/MessageTests.java (original) +++ incubator/depot/trunk/update/src/test/org/apache/depot/update/util/text/MessageTests.java Sun May 2 11:18:20 2004 @@ -32,22 +32,23 @@ } public void testMessages() throws Exception { - List messageCodes = MessageConstants.getCodes(); + List inJavaCodes = MessageConstants.getCodes(); - for (Iterator i = messageCodes.iterator(); i.hasNext();) { + // Find any in Java but not in resource bundle + for (Iterator i = inJavaCodes.iterator(); i.hasNext();) { String code = (String) i.next(); assertNotNull(code, Messages.loadMessageFormat(code)); } } public void testForObsolete() throws Exception { - List messageCodes1 = MessageConstants.getCodes(); - List messageCodes2 = Messages.getCodes(); + List inJavaCodes = MessageConstants.getCodes(); + List inResourceCodes = Messages.getCodes(); - for (Iterator i = messageCodes1.iterator(); i.hasNext();) { + // Find any in resource bundle but not in Java + for (Iterator i = inResourceCodes.iterator(); i.hasNext();) { String code = (String) i.next(); - - assertTrue("Obsolete : " + code, messageCodes2.contains(code)); + assertTrue("Obsolete : " + code, inJavaCodes.contains(code)); } }