[ 
https://issues.apache.org/jira/browse/OFBIZ-3670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859037#action_12859037
 ] 

Scott Gray commented on OFBIZ-3670:
-----------------------------------

I've tried this already :-)

I extended the GenericDelegator but it didn't work because the ECAs would get 
in the way and result in changes being tracked in the wrong order.  You are 
more than welcome to give it a go though, I didn't spend too much time on it 
and I'm sure there is a solution in there somewhere.

As to how the existing system works, there isn't actually that much caching of 
the delegator or retrieving it by name, mostly just in the service dispatcher, 
job manager and eca handler.  Aside from the job manager the others work fine 
with the current approach because you control their instantiation and can 
supply the delegator.

> TestCase base classes providing ability to execute unit tests in Eclipse in 
> "standalone" mode
> ---------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-3670
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3670
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Bob Morley
>            Assignee: Scott Gray
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-3670_StandaloneTestEnhancement.patch
>
>
> This patch provides the framework that allows junit unit tests to be executed 
> directly in Eclipse (without having to invoke Start directly).  It total it 
> contains:
> - BaseTestCase - very top of the TestCase stack containing ofbiz specific 
> assertions
> - StandaloneTestCase - determines if application has executed "Start"; if not 
> it will execute a scaled down "Start unittest" that is used in Eclipse
> - RollbackTestCase - extends standalone and provides a transaction w/ 
> auto-rollback
> - TestRunContainer - provides ability to disable dispatcher attributes via 
> configuration (used for unittest-containers.xml)
> - GeoWorkerTest - unittester that provides "full" coverage of GeoWorker; can 
> be executed from Eclipse or from command-line as it is plugged into standard 
> testdef framework.  Creates its own entities with transaction start/rollback 
> so it can be re-executed.
> Would appreciate if this can be a priority so I can provide additional test 
> cases to boost our code coverage that will utilize these features.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to