For the below code I am unable to write the JUnit for @Postconstruct init()
But for text JUNIT is working fine via JSON. Need help
@inject
private Page currentPage;
@ValueMapValue
Private String text;
private String pageTitle;
@PostConstruct
protected void init() {
if(!(currentPage.getName().equalsIgnoreCase("Product") || currentPage.getTemplate.getPath.equals("/conf/we-retail/settings/wcm/templates/hero")))
{
text="";
}
}
public void getText()
{ return text;}