All Questions
Tagged with white-box-testing white-box
6
questions
1
vote
0
answers
34
views
Cyclomatic Complexity Calculation on Presenter Methods and Callbacks
everyone.
I need help in determining the cyclomatic complexity regarding this tested method.
@Override
public void renderData() {
mRepository.render(new TvShowsRepositoryCallback() {
@...
1
vote
1
answer
1k
views
unit testing Coverage Issue
my ultimate goal is to cover the below code (making complete code green). I am using cantata tool.
#define CHECK1 ((a == 1) || (a == 4))
void check_fun(int a, int b)
{
if((!CHECK1)&...
0
votes
1
answer
3k
views
Why does PowerMock's example for use of Whitebox.invokeConstructor() throw a ConstructorNotFoundException?
When I then try to run the second example from PowerMock's Bypass Encapsulation docs, using PowerMock 1.5.2 (which we use at my company), I immediately get a ConstructorNotFoundException thrown. I ...
4
votes
1
answer
2k
views
Does statement coverage count false if statements?
When checking statement coverage for my code:
double programme(double x, double y)
{
double z
if(x>=5){
z = 15;
}
else if(x>=3){
z= 10;
}
else {
z=0;...
1
vote
3
answers
4k
views
should unit tests be black box tests or white box tests?
Say I have three methods, all very similar but with different input types:
void printLargestNumber(int a, int b) { ... }
void printLargestNumber(double a, double b) { ... }
void printLargestNumber(...
1
vote
1
answer
511
views
Questions on WhiteBox testing, ON-Units, Condition-Coverage
I am reading a book where I am getting stuck at few white box testing concepts. The article in the below link is taken exactly from the book.
http://testdesigners.com/testingstyles/ControlFlowTesting....