User: user57  
  Date: 01/05/03 15:36:25

  Modified:    src/main/org/jboss/test/testbean/test Main.java
  Log:
   o Changed namingFactory & providerURL fields to final.
  
  Revision  Changes    Path
  1.7       +6 -10     jbosstest/src/main/org/jboss/test/testbean/test/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/testbean/test/Main.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Main.java 2001/05/02 03:07:18     1.6
  +++ Main.java 2001/05/03 22:36:25     1.7
  @@ -51,7 +51,7 @@
   *
   * @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
   * @author <a href="mailto:[EMAIL PROTECTED]";>Hugo Pinto</a>
  -* @version $Id: Main.java,v 1.6 2001/05/02 03:07:18 user57 Exp $
  +* @version $Id: Main.java,v 1.7 2001/05/03 22:36:25 user57 Exp $
   */
   public class Main 
      extends junit.framework.TestCase
  @@ -60,9 +60,12 @@
        static int test = 0;
        static Date startDate = new Date();
   
  -    protected String namingFactory;
  -    protected String providerURL;
  +    protected final String namingFactory =
  +        System.getProperty(Context.INITIAL_CONTEXT_FACTORY);
       
  +    protected final String providerURL =
  +        System.getProperty(Context.PROVIDER_URL);
  +    
       public Main(String name) {
                super(name);
       }
  @@ -997,9 +1000,7 @@
                } catch (RemoteException e) {
                        System.out.println(" ... OK, exception message: "+ 
e.getMessage());
                }
  -             
                                        
  -                                     
                //*/
           System.out.println();
           System.out.println();
  @@ -1081,11 +1082,6 @@
         new org.jboss.jmx.client.Deployer().deploy("../deploy/testbean2.jar");
         deployed = true;
         System.out.println("done!");
  -
  -      // save the basics to connect to the naming server so we can
  -      // test that the handle impls return when new InitialContext() fails
  -      namingFactory = System.getProperty(Context.INITIAL_CONTEXT_FACTORY);
  -      providerURL = System.getProperty(Context.PROVIDER_URL);
      }
   
      protected void tearDown() throws Exception {
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to