So our stack is on Spring
, and say Class Wizard
is only ever called from a UI change. On the xhtml
its called like this:
`<.....onchange="changeValue()" value="wizard.type.name">`
The class is never instantiated anywhere in the code, and the only constructor in the class is:
public Wizard(){}
And say getName()
calls a private method getWizardWeapon()
- how do i go about testing getWizardWeapon()
in junit in a separate project (say TestWizard
but in the same workspace)?