[jbpm-commits] JBoss JBPM SVN: r6342 - in jbpm4/trunk/modules/test-cfg/src/test: java/org/jbpm/test/custombusinesscalendarimpl and 2 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Sat May 15 05:11:28 EDT 2010


Author: rebody
Date: 2010-05-15 05:11:28 -0400 (Sat, 15 May 2010)
New Revision: 6342

Modified:
   jbpm4/trunk/modules/test-cfg/src/test/java/org/jbpm/test/custombusinesscalendarcfg/CustomBusinessCalendarCfgTest.java
   jbpm4/trunk/modules/test-cfg/src/test/java/org/jbpm/test/custombusinesscalendarimpl/CustomBusinessCalendarImplTest.java
   jbpm4/trunk/modules/test-cfg/src/test/resources/org/jbpm/test/spring/expression/eventlistener/applicationContext.xml
   jbpm4/trunk/modules/test-cfg/src/test/resources/org/jbpm/test/spring/transactionmanager/applicationContext.xml
Log:
correct spring testcase of test-cfg
change deprecated method Job.getDueDate() to getDuedate()

Modified: jbpm4/trunk/modules/test-cfg/src/test/java/org/jbpm/test/custombusinesscalendarcfg/CustomBusinessCalendarCfgTest.java
===================================================================
--- jbpm4/trunk/modules/test-cfg/src/test/java/org/jbpm/test/custombusinesscalendarcfg/CustomBusinessCalendarCfgTest.java	2010-05-14 02:41:49 UTC (rev 6341)
+++ jbpm4/trunk/modules/test-cfg/src/test/java/org/jbpm/test/custombusinesscalendarcfg/CustomBusinessCalendarCfgTest.java	2010-05-15 09:11:28 UTC (rev 6342)
@@ -71,7 +71,7 @@
         .processInstanceId(processInstance.getId())
         .uniqueResult();
       
-      Date duedate = job.getDueDate();
+      Date duedate = job.getDuedate();
       
       gregorianCalendar = new GregorianCalendar();
       gregorianCalendar.setTime(duedate);

Modified: jbpm4/trunk/modules/test-cfg/src/test/java/org/jbpm/test/custombusinesscalendarimpl/CustomBusinessCalendarImplTest.java
===================================================================
--- jbpm4/trunk/modules/test-cfg/src/test/java/org/jbpm/test/custombusinesscalendarimpl/CustomBusinessCalendarImplTest.java	2010-05-14 02:41:49 UTC (rev 6341)
+++ jbpm4/trunk/modules/test-cfg/src/test/java/org/jbpm/test/custombusinesscalendarimpl/CustomBusinessCalendarImplTest.java	2010-05-15 09:11:28 UTC (rev 6342)
@@ -65,7 +65,7 @@
       .processInstanceId(processInstance.getId())
       .uniqueResult();
     
-    Date duedate = job.getDueDate();
+    Date duedate = job.getDuedate();
     
     GregorianCalendar gregorianCalendar = new GregorianCalendar();
     gregorianCalendar.setTime(duedate);

Modified: jbpm4/trunk/modules/test-cfg/src/test/resources/org/jbpm/test/spring/expression/eventlistener/applicationContext.xml
===================================================================
--- jbpm4/trunk/modules/test-cfg/src/test/resources/org/jbpm/test/spring/expression/eventlistener/applicationContext.xml	2010-05-14 02:41:49 UTC (rev 6341)
+++ jbpm4/trunk/modules/test-cfg/src/test/resources/org/jbpm/test/spring/expression/eventlistener/applicationContext.xml	2010-05-15 09:11:28 UTC (rev 6342)
@@ -6,10 +6,10 @@
 	     xmlns:tx="http://www.springframework.org/schema/tx"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 	     xsi:schemaLocation="
-          http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
-          http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
-          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
-          http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
+          http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+          http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
+          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.0.xsd
+          http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
 
 
   <bean id="myEventListener" class="org.jbpm.test.spring.expression.eventlistener.MyEventListener" />
@@ -21,7 +21,7 @@
   <bean id="processEngine" factory-bean="springHelper" factory-method="createProcessEngine" />
 
 	<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
-		<property name="configLocation" value="classpath:org/jbpm/test/spring/transactionmanager/jbpm.hibernate.cfg.xml" />
+		<property name="configLocation" value="classpath:org/jbpm/test/spring/expression/eventlistener/jbpm.hibernate.cfg.xml" />
 		<!-- A best practice should be to keep split the config into multiple files
 			<property name="configLocations" value="hibernate.cfg.xml, hibernate.jbpm.cfg.xml" />
 		 -->

Modified: jbpm4/trunk/modules/test-cfg/src/test/resources/org/jbpm/test/spring/transactionmanager/applicationContext.xml
===================================================================
--- jbpm4/trunk/modules/test-cfg/src/test/resources/org/jbpm/test/spring/transactionmanager/applicationContext.xml	2010-05-14 02:41:49 UTC (rev 6341)
+++ jbpm4/trunk/modules/test-cfg/src/test/resources/org/jbpm/test/spring/transactionmanager/applicationContext.xml	2010-05-15 09:11:28 UTC (rev 6342)
@@ -6,10 +6,10 @@
 	     xmlns:tx="http://www.springframework.org/schema/tx"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 	     xsi:schemaLocation="
-          http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
-          http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
-          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
-          http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
+          http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+          http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
+          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.0.xsd
+          http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
 
    <bean id="springHelper" class="org.jbpm.pvm.internal.processengine.SpringHelper">
       <property name="jbpmCfg" value="org/jbpm/test/spring/transactionmanager/jbpm.cfg.xml" />



More information about the jbpm-commits mailing list