[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/marshall/encrypt ...

Anil Saldhana anil.saldhana at jboss.com
Fri Aug 25 17:13:25 EDT 2006


  User: asaldhana
  Date: 06/08/25 17:13:25

  Modified:    src/tests/org/jboss/test/remoting/marshall/encrypt 
                        EncryptingMarshallerTestClient.java
  Log:
  JBREM-419:uncomment the Java invocation method
  
  Revision  Changes    Path
  1.2       +8 -4      JBossRemoting/src/tests/org/jboss/test/remoting/marshall/encrypt/EncryptingMarshallerTestClient.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: EncryptingMarshallerTestClient.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/marshall/encrypt/EncryptingMarshallerTestClient.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- EncryptingMarshallerTestClient.java	16 Aug 2006 19:18:30 -0000	1.1
  +++ EncryptingMarshallerTestClient.java	25 Aug 2006 21:13:25 -0000	1.2
  @@ -30,6 +30,7 @@
   import org.jboss.remoting.marshal.UnMarshaller; 
   import org.jboss.remoting.marshal.encryption.EncryptingMarshaller;
   import org.jboss.remoting.marshal.encryption.EncryptingUnMarshaller;  
  +import org.jboss.remoting.serialization.SerializationStreamFactory;
   
   import java.io.ByteArrayInputStream;
   import java.io.ByteArrayOutputStream;
  @@ -57,7 +58,7 @@
         unmarshaller = null;
      } 
      
  -   /*public void testJavaInvocations()
  +   public void testJavaInvocations()
      {
         try
         {
  @@ -65,7 +66,9 @@
            MarshalFactory.addMarshaller("encrypt", 
                  new EncryptingMarshaller(), 
                  new EncryptingUnMarshaller());
  -         String locatorURI = "socket://localhost:5300/?datatype=encrypt";
  +         String locatorURI = "socket://localhost:5300/?datatype=encrypt&"+
  +            InvokerLocator.SERIALIZATIONTYPE + "=" +
  +            SerializationStreamFactory.JAVA_ENCRYPT;
            InvokerLocator locator = new InvokerLocator(locatorURI);
            Client remotingClient = new Client(locator);
            remotingClient.connect();
  @@ -81,7 +84,7 @@
            e.printStackTrace();
            fail();
         }
  -   }*/
  +   } 
      
      public void testJBossInvocations()
      {
  @@ -92,7 +95,8 @@
                  new EncryptingMarshaller(), 
                  new EncryptingUnMarshaller());
            String locatorURI = "socket://localhost:5400/?datatype=encrypt&"+
  -            InvokerLocator.SERIALIZATIONTYPE+"=jboss";
  +            InvokerLocator.SERIALIZATIONTYPE + "=" +
  +            SerializationStreamFactory.JBOSS_ENCRYPT;
            InvokerLocator locator = new InvokerLocator(locatorURI); 
            Client remotingClient = new Client(locator);
            remotingClient.connect();
  
  
  



More information about the jboss-cvs-commits mailing list