
Originally Posted by
al0
And even when you speak about non-POJO OO application they may be unit testable as well (probably, you have more complex setup and so on, but it does not mean untestability).
Oh, that's for sure.
It's virtual world anyway.
Given enough time and money one can create 'a crow fish that whistle'. The only interesting issue what if instead of 'a well of money' you have a budget and 'all the time you can get' - a project schedule, would you be willing to create 'more complex setup and so on' for testing your objects/use cases? It is definitely possible to test through POJT even EJB 2x, if it's OK with your team that your testing code paraphernalia would eventually and inevitably overgrow your application code. Is EJB 2x unit-testable? Yes, it is. Is it worth it? No.

Originally Posted by
al0
I'm sorry, but ability to unit-testi the application in automated mode is completely orthogonal to object orientation. While first it became popular (not appeared, but exactly became popular and wide-spreaded) in the OO environment, there are similar systems for completely procedural environments.
Do not agree. It is through POJT one can immediately identify a good OOP design from a bad one. Because only through POJT one can practically appreciate why we need all those things called 'good' OOP practices - GOF patterns and design principles like 'code through interface not through implementation', 'loosely coupled - tightly cohesive', 'holliwood', 'talk only to immediate friends' etc. Why are they 'good' if on surface they add up to my code base, and hence complicate code management? Well, they are good OOP, because if I don't follow them, than I would weep on testing stage.
So to me (no matter what 'official' or semi-official 'gurus' would say ) testing requirements is a driving engine for creating a 'good' object. So much about being 'completely orthogonal to object orientation'.

Originally Posted by
al0
there are similar systems for completely procedural environments.
And how it's called - 'a bunch of code-monkeys'?
Cheers,
Arno
Spring, it's a wonderful thing...