Questions tagged [testability]
49 questions
0
votes
2 answers
Why did Java make package access default?
I'm asking this question because I believe they did it for a very good reason and that most people do not use it properly, well from my experience in industry so far anyway. But if my theory is true then I'm not sure why they included the private…

newlogic
- 807
- 8
- 25
0
votes
3 answers
Testable Java Code: using model beans with a constructor
According to Misko Hevery that has a testability blog. Developers should avoid 'holder', 'context', and 'kitchen sink' objects (these take all sorts of other objects and are a grab bag of collaborators). Pass in the specific object you need as a…

Berlin Brown
- 11,504
- 37
- 135
- 203
0
votes
1 answer
Testable C application using posix threads
I have to write code that would look do something like that (of course much more complicated):
int stop;
int isStopped;
void workerFunction(){
while(!stop){
//...
}
isStopeed = 1;
}
startThread(){
int newThreadPid =…

nkdm
- 1,220
- 1
- 11
- 26
-2
votes
1 answer
How to measure testability of Java classes?
I want to implement JUnit tests in order to do some refactoring. First I'd like to check how good the class is, whether it's implemented for testability. Is there any metric and tools I could use to measure how testable a Java class is?

user5417542
- 3,146
- 6
- 29
- 50