Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 75493 invoked from network); 15 Mar 2008 23:18:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2008 23:18:07 -0000 Received: (qmail 25104 invoked by uid 500); 15 Mar 2008 23:18:04 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 25019 invoked by uid 500); 15 Mar 2008 23:18:04 -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 25010 invoked by uid 99); 15 Mar 2008 23:18:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Mar 2008 16:18:04 -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; Sat, 15 Mar 2008 23:17:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A19F1234C09B for ; Sat, 15 Mar 2008 16:16:24 -0700 (PDT) Message-ID: <410912229.1205622984660.JavaMail.jira@brutus> Date: Sat, 15 Mar 2008 16:16:24 -0700 (PDT) From: "Henri Yandell (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (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:comment-tabpanel&focusedCommentId=12579099#action_12579099 ] Henri Yandell commented on COLLECTIONS-267: ------------------------------------------- Which I think is already happening - so this would be a 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.