openamf/src/java/org/openamf/io AMFSerializerTest.java,1.1,1.2

[email protected] Wed, 20 Aug 2003 13:11:13 -0700
Newsgroups gmane.comp.java.openamf.cvs
Message-ID <[email protected]>
Update of /cvsroot/openamf/openamf/src/java/org/openamf/io
In directory sc8-pr-cvs1:/tmp/cvs-serv9756/src/java/org/openamf/io

Modified Files:
	AMFSerializerTest.java 
Log Message:
implemented cactus unit testing and created DefaultGatewayTest

Index: AMFSerializerTest.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/io/AMFSerializerTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** AMFSerializerTest.java	20 Aug 2003 19:01:17 -0000	1.1
--- AMFSerializerTest.java	20 Aug 2003 20:11:11 -0000	1.2
***************
*** 1,10 ****
  package org.openamf.io;
  
- import java.util.*;
- import java.lang.reflect.*;
  import java.io.*;
! import org.apache.commons.beanutils.*;
! import org.apache.commons.beanutils.PropertyUtils;
! import org.apache.log4j.*;
  import org.openamf.*;
  import junit.framework.*;
--- 1,6 ----
  package org.openamf.io;
  
  import java.io.*;
! import org.apache.commons.logging.*;
  import org.openamf.*;
  import junit.framework.*;
***************
*** 13,17 ****
    extends TestCase
  {
!   private static final Logger log = Logger.getLogger(AMFSerializerTest.class);
  
    public AMFSerializerTest(String name)
--- 9,13 ----
    extends TestCase
  {
!   private static final Log log = LogFactory.getLog(AMFSerializerTest.class);
  
    public AMFSerializerTest(String name)
***************
*** 26,34 ****
    }
  
    public void testSerializeMessage() throws Exception
    {
!     ByteArrayOutputStream output = new ByteArrayOutputStream();
!     AMFSerializer serializer = new AMFSerializer(new DataOutputStream(output));
!     AMFMessage message = getTestMessage();
      serializer.serializeMessage(message);
  
--- 22,38 ----
    }
  
+   public void setUp() throws Exception
+   {
+   }
+ 
+   public void tearDown() throws Exception
+   {
+   }
+ 
    public void testSerializeMessage() throws Exception
    {
!     ByteArrayOutputStream output      = new ByteArrayOutputStream();
!     AMFSerializer         serializer  = new AMFSerializer(new DataOutputStream(output));
!     AMFMessage            message     = getTestMessage();
      serializer.serializeMessage(message);
  




-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0