You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Alan Mehio (JIRA)" <ji...@apache.org> on 2007/09/18 13:39:43 UTC

[jira] Created: (COLLECTIONS-267) TestMultiKeyMap new test case for Serialization and Deserialization

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


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.


[jira] Commented: (COLLECTIONS-267) TestMultiKeyMap new test case for Serialization and Deserialization

Posted by "Henri Yandell (JIRA)" <ji...@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.


[jira] Updated: (COLLECTIONS-267) TestMultiKeyMap new test case for Serialization and Deserialization

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COLLECTIONS-267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell updated COLLECTIONS-267:
--------------------------------------

    Fix Version/s: 3.3

> 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.


[jira] Commented: (COLLECTIONS-267) TestMultiKeyMap new test case for Serialization and Deserialization

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COLLECTIONS-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579098#action_12579098 ] 

Henri Yandell commented on COLLECTIONS-267:
-------------------------------------------

There's already an API there for doing serialization tests - so really this is a request to test MultiKeyMap for serialization.

> 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.


[jira] Closed: (COLLECTIONS-267) TestMultiKeyMap new test case for Serialization and Deserialization

Posted by "Henri Yandell (JIRA)" <ji...@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.