Hi All,
How to set date property to a component in functional testing .
I have extending the AbstractComponent and i able to set String properties but not date. appriciate your help.
testcomponent comp = new Banner(componentclient, xfPath,"/master/jcr:content/root/testcomponent", "testcomponent");
comp.setProeprty("title","pageTitle");
Not able to set
banner.setProeprty("date", date);
Thanks in advance.
Views
Replies
Total Likes
Please try the below
Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
banner.setProperty("date",calendar);
It is not working.
In AbstractComponent class there is no method like --> setProperty(string, calendar).
I have created new one but no luck.
public void setDateProperty(String name, Calendar calendar) {
setProperty("date",calendar);
}
API : com.adobe.cq.testing.client.ComponentClient;
Thanks in advance.
Sorry i thought it was for Node API. My mistake.