Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 44603 invoked from network); 19 Mar 2008 06:48:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2008 06:48:14 -0000 Received: (qmail 53283 invoked by uid 500); 19 Mar 2008 06:48:11 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 53208 invoked by uid 500); 19 Mar 2008 06:48:10 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 53199 invoked by uid 99); 19 Mar 2008 06:48:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 23:48:10 -0700 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; Wed, 19 Mar 2008 06:47:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 67ED8234C0A8 for ; Tue, 18 Mar 2008 23:46:24 -0700 (PDT) Message-ID: <214233632.1205909184424.JavaMail.jira@brutus> Date: Tue, 18 Mar 2008 23:46:24 -0700 (PDT) From: "Henri Yandell (JIRA)" To: issues@commons.apache.org Subject: [jira] Closed: (COLLECTIONS-267) TestMultiKeyMap new test case for Serialization and Deserialization In-Reply-To: <13590248.1190115583920.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/COLLECTIONS-267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Henri Yandell closed COLLECTIONS-267. ------------------------------------- Resolution: Won't Fix Looking at the source again - I again think it's already being tested so marking this as WONTFIX. > TestMultiKeyMap new test case for Serialization and Deserialization > --------------------------------------------------------------------- > > Key: COLLECTIONS-267 > URL: https://issues.apache.org/jira/browse/COLLECTIONS-267 > Project: Commons Collections > Issue Type: Test > Affects Versions: 3.2 > Environment: WindowXP(CYGWIN) JDK 1.5 > Reporter: Alan Mehio > Priority: Trivial > Fix For: 3.3 > > > We should add a serialzation and deserialzation test case for the class MultiKeyMap since there is a testCone() method it would be good to have the below test case in the TestMultiKeyMap > public void testSerializationDeserialization() { > MultiKeyMap serialized = new MultiKeyMap(); > serialized.put(new MultiKey(I1, I2), "1-2"); > try { > ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream("map.ser")); > out.writeObject(serialized); > ObjectInputStream in = new ObjectInputStream(new FileInputStream("map.ser")); > MultiKeyMap deserialzed = (MultiKeyMap)in.readObject(); > assertEquals(serialized.size(), deserialzed.size()); > }catch(Exception ex){ > fail("Test failed due to exception" + ex.getMessage() ); > } > > } > > I have checked the latest class at http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/java/org/apache/commons/collections/map/MultiKeyMap.java?revision=560660 > I could not find the test method > thanks > Alan Mehio > London, UK -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.