This discussion is archived
5 Replies Latest reply: Jul 8, 2013 3:40 AM by jwenting RSS

How to access constructor that is not public from another package

meandmycode Newbie
Currently Being Moderated

Hi,

 

We have a class that has a constructor in package se.company.internal that looks like:

 

DraHw(){

 

}

 

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?

 

br,

 

//mike

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points