bloritsch 2003/07/11 08:33:44
Modified: meta/api/src/test/org/apache/avalon/meta/info/test
InfoDescriptorTestCase.java
Log:
Remove unnecessary test--taken care of in the parent
Revision Changes Path
1.2 +0 -19
avalon-sandbox/meta/api/src/test/org/apache/avalon/meta/info/test/InfoDescriptorTestCase.java
Index: InfoDescriptorTestCase.java
===================================================================
RCS file:
/home/cvs/avalon-sandbox/meta/api/src/test/org/apache/avalon/meta/info/test/InfoDescriptorTestCase.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- InfoDescriptorTestCase.java 11 Jul 2003 14:58:05 -0000 1.1
+++ InfoDescriptorTestCase.java 11 Jul 2003 15:33:44 -0000 1.2
@@ -90,23 +90,4 @@
assertEquals( m_version, info.getVersion() );
assertEquals( m_lifestyle, info.getLifestyle() );
}
-
- public void testSerialization() throws IOException, ClassNotFoundException
- {
- File file = new File("name.test");
- InfoDescriptor original = (InfoDescriptor) getDescriptor();
- ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file));
- oos.writeObject(original);
- oos.close();
-
- ObjectInputStream ois = new ObjectInputStream( new FileInputStream(file));
- InfoDescriptor serialized = (InfoDescriptor)ois.readObject();
- ois.close();
- file.delete();
-
- checkDescriptor( serialized );
- assertEquals( original, serialized );
- assertEquals( original.hashCode(), serialized.hashCode() );
- }
-
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]