Re: [rules-users] ShadowProxy PersistentSet

2008-04-28 Thread vdelbart
I create a JIRA : http://jira.jboss.com/jira/browse/JBRULES-1590 it's to complicate to me to create an unit test with a hibernate session. thanks, V. Mark Proctor wrote: Can you open a JIRA for this? If you provide a unit test with it, we'll see if we can include this in 4.0.7. 5.0 will

Re: [rules-users] ShadowProxy PersistentSet

2008-04-28 Thread Mark Proctor
Mock classes? vdelbart wrote: I create a JIRA : http://jira.jboss.com/jira/browse/JBRULES-1590 it's to complicate to me to create an unit test with a hibernate session. thanks, V. Mark Proctor wrote: Can you open a JIRA for this? If you provide a unit test with it, we'll see if we can

Re: [rules-users] ShadowProxy PersistentSet

2008-04-28 Thread vdelbart
I post a test case in the JIRA Mark Proctor wrote: Mock classes? vdelbart wrote: I create a JIRA : http://jira.jboss.com/jira/browse/JBRULES-1590 it's to complicate to me to create an unit test with a hibernate session. thanks, V. Mark Proctor wrote: Can you open a JIRA for

Re: [rules-users] ShadowProxy PersistentSet

2008-04-23 Thread vdelbart
I think the method cloneObject 'ShadowProxyUtils' could be improve like follow : public static Object cloneObject(Object original) { Object clone = null; if ( original instanceof Cloneable ) { try { Method cloneMethod =

Re: [rules-users] ShadowProxy PersistentSet

2008-04-23 Thread Mark Proctor
Can you open a JIRA for this? If you provide a unit test with it, we'll see if we can include this in 4.0.7. 5.0 will now have shadow proxies any more, as default. Mark vdelbart wrote: I think the method cloneObject 'ShadowProxyUtils' could be improve like follow : public static Object