We have a class that has a constructor in package se.company.internal that looks like:
Then from a HwTest class ( packge se.company.function.hw) we want to access this class but we cannot make the constructor public.
Any ideas on how we can create an instance of DraHw when testing without making constructor public?
> we want
However do you in fact actually need to? And if you do that are you breaking the design of the other app? Obviously there is in fact a way to create the class so perhaps you should study that first to insure that there is not some designed way to do what you want.
> How would that 1:1 one class look like?
I REALLY suggest that you look at the original design again.