[jboss-cvs] jbosside/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test ...

Max Rydahl Andersen mandersen at jboss.com
Fri Dec 22 10:37:07 EST 2006


  User: mandersen
  Date: 06/12/22 10:37:07

  Modified:    hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test  
                        KnownConfigurationsTest.java
                        ConsoleConfigurationTest.java
  Log:
  fix compile errors
  
  Revision  Changes    Path
  1.3       +15 -0     jbosside/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/KnownConfigurationsTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: KnownConfigurationsTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/KnownConfigurationsTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- KnownConfigurationsTest.java	8 Feb 2006 08:02:02 -0000	1.2
  +++ KnownConfigurationsTest.java	22 Dec 2006 15:37:07 -0000	1.3
  @@ -114,6 +114,21 @@
   				return null;
   			}
   		
  +			public ConfigurationMode getConfigurationMode() {
  +				// TODO Auto-generated method stub
  +				return null;
  +			}
  +
  +			public String getNamingStrategy() {
  +				// TODO Auto-generated method stub
  +				return null;
  +			}
  +
  +			public String getPersistenceUnitName() {
  +				// TODO Auto-generated method stub
  +				return null;
  +			}
  +		
   		};
   		ConsoleConfiguration configuration = new ConsoleConfiguration(preferences);
   		
  
  
  
  1.3       +31 -3     jbosside/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/ConsoleConfigurationTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ConsoleConfigurationTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/ConsoleConfigurationTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- ConsoleConfigurationTest.java	8 Feb 2006 08:02:02 -0000	1.2
  +++ ConsoleConfigurationTest.java	22 Dec 2006 15:37:07 -0000	1.3
  @@ -75,14 +75,27 @@
   			return "fake prefs";
   		}
   	
  -		public boolean useAnnotations() {
  -			return false;
  -		}
  +		
   
   		public String getEntityResolverName() {			
   			return "";
   		}
   	
  +		public ConfigurationMode getConfigurationMode() {
  +			
  +			return null;
  +		}
  +
  +		public String getNamingStrategy() {
  +			// TODO Auto-generated method stub
  +			return null;
  +		}
  +
  +		public String getPersistenceUnitName() {
  +			// TODO Auto-generated method stub
  +			return null;
  +		}
  +	
   	}
   	
   	
  @@ -137,4 +150,19 @@
   		
   	}
   	
  +	public void testCleanup() throws InterruptedException {
  +		
  +		for(int cnt=0;cnt<10000;cnt++) {
  +			if(cnt%2==0) {
  +				
  +				System.out.println("Cnt " + cnt + " " + Runtime.getRuntime().freeMemory()/1000);
  +				Thread.sleep( 2000 );
  +			}
  +			
  +			consoleCfg.build();
  +			consoleCfg.buildSessionFactory();
  +			consoleCfg.reset();
  +		}
  +		
  +	}
   }
  
  
  



More information about the jboss-cvs-commits mailing list