From: <bla...@us...> - 2008-11-16 02:01:42
|
Revision: 58 http://drawbridge.svn.sourceforge.net/drawbridge/?rev=58&view=rev Author: blamonica Date: 2008-11-16 02:01:38 +0000 (Sun, 16 Nov 2008) Log Message: ----------- Fix Unit Tests, waiting for check-ins from Adam. Modified Paths: -------------- trunk/drawbridge/src/java/net/sf/drawbridge/dao/hibernate/hbm/Job.hbm.xml trunk/drawbridge/src/test/net/sf/drawbridge/sched/ExecuteQueryJobTest.java Modified: trunk/drawbridge/src/java/net/sf/drawbridge/dao/hibernate/hbm/Job.hbm.xml =================================================================== --- trunk/drawbridge/src/java/net/sf/drawbridge/dao/hibernate/hbm/Job.hbm.xml 2008-11-16 00:06:11 UTC (rev 57) +++ trunk/drawbridge/src/java/net/sf/drawbridge/dao/hibernate/hbm/Job.hbm.xml 2008-11-16 02:01:38 UTC (rev 58) @@ -7,9 +7,7 @@ <generator class="native"/> </id> - <property name="name" type="string" length="64" not-null="true"> - <column name="NAME"/> - </property> + <property name="name" type="string" length="64" not-null="true" column="NAME"/> <many-to-one name="runAsAccount" column="RUN_AS_ID" @@ -18,6 +16,8 @@ lazy="false" /> + <property name="jobType" type="net.sf.drawbridge.dao.hibernate.JobTypeUserType" column="JOB_TYPE"/> + <property name="query" type="string" length="1024" not-null="true"> <column name="QUERY"/> </property> Modified: trunk/drawbridge/src/test/net/sf/drawbridge/sched/ExecuteQueryJobTest.java =================================================================== --- trunk/drawbridge/src/test/net/sf/drawbridge/sched/ExecuteQueryJobTest.java 2008-11-16 00:06:11 UTC (rev 57) +++ trunk/drawbridge/src/test/net/sf/drawbridge/sched/ExecuteQueryJobTest.java 2008-11-16 02:01:38 UTC (rev 58) @@ -80,7 +80,7 @@ public void testShouldExecuteJobAndSendResultsToHandler() throws Exception { Job job = getJob(); - mockJobExecuter.expects(once()).method("executeQueryJob"); + mockJobExecuter.expects(once()).method("executeJob"); mockBeanFactory.expects(once()).method("getBean").with(eq("SomeHandler")).will(returnValue(mockHandler.proxy())); mockPropConverter.expects(once()).method("convertToProperties").will(returnValue(new Properties())); mockHandler.expects(once()).method("handleQuery"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |