5 Replies Latest reply: Jul 8, 2013 5:40 AM by jwenting RSS

    How to access constructor that is not public from another package

    meandmycode

      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