Hello,

You does not seem aware that there is 2 GitHub projects by Henrique Prange for 
Unit testing of EOF and Injection in WO. There tools have some limits but as a 
user of wounit I can testify it works.

I do not personally use woinject because I do not see the need for my projects 
(at least right now)

http://hprange.github.io/wounit/
http://hprange.github.io/woinject/

As the logic is supposed to by in the EOs, if EOs can be tested, I'm happy. I 
do not see why components should be tested. I only write tests in my Logic 
frameworks.

Regards,

Samuel


> Le 2015-12-30 à 17:46, Jürgen Simon <[email protected]> a écrit :
> 
> Hello,
> 
> On 28 Dec 2015, at 20:26, Andrus Adamchik <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>>  
>> On Mon, Dec 28, 2015, at 05:28 PM, Miguel Arroz wrote:
>>>   Just because those frameworks don’t explicitly have abominations like 
>>> dependency injection mechanisms, it doesn’t mean they don’t follow the IoC 
>>> principles.
>>  
>> Heh, there are DI frameworks out there that may be called abominations, but 
>> DI itself simply facilitates a very clean pluggable architecture if you use 
>> it right. And no, WO/EOF doesn't have it. And yes, it is a problem. Just ask 
>> the folks who are trying to write unit tests against EOF ;)
> 
> Absolutely. Proper DI facilities make things a lot easier to test. And the 
> code much cleaner. Wouldn’t it be nice to have something like
> 
> @Autowired
> EOEditingContext editingContext;
> 
> instead of 
> 
> EOEditingContext editingContext = ERXEC.newEditingContext()
> 
> perhaps even with some rule based setup, aka: D2W meets DI? 
> 
> Just thinking out loud.
> 
> J.
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to