public class TryThis{
protected TryThis{String name}{this(name,true,false);}
protected TryThis{String name,boolean val){ this(name,val,false);}
protected TryThis{String name,val1,val2){..}
.....
}
While testing..
I've a unittestlike :
@Test
public void testConstructor() throws Exception{
Whitebox.invokeConstructor(TryThis.class,"constru");
}
When i try to run this junit test.. getting
org.powermock.reflect.exception
TooManyConstructorsFoundException:Could not determine which
constructor to execute.Please specify the paramter types by hand..
Original issue reported on code.google.com by johan.ha...@gmail.com on 4 Nov 2009 at 10:02
Original issue reported on code.google.com by
johan.ha...@gmail.com
on 4 Nov 2009 at 10:02