*/
BusinessGroupManager myManager = BusinessGroupManagerImpl.getInstance();
sqlRes = myManager.findBusinessGroupsOwnedBy(BusinessGroup.TYPE_BUDDYGROUP, id2, null);
found = (BusinessGroup) sqlRes.get(0);
CollaborationTools myCTSMngr = CollaborationToolsFactory.getInstance().getOrCreateCollaborationTools(found);
for (int i = 0; i < CollaborationTools.TOOLS.length; i++) {
String msg = "Tool " + CollaborationTools.TOOLS[i] + " is enabled";
boolean enabled = myCTSMngr.isToolEnabled(CollaborationTools.TOOLS[i]);
// all tools are disabled by default exept the news tool
assertTrue(msg, !enabled);
}
//
for (int i = 0; i < CollaborationTools.TOOLS.length; i++) {
myCTSMngr.setToolEnabled(CollaborationTools.TOOLS[i], true);
}
//
for (int i = 0; i < CollaborationTools.TOOLS.length; i++) {
String msg = "Tool " + CollaborationTools.TOOLS[i] + " is enabled";
boolean enabled = myCTSMngr.isToolEnabled(CollaborationTools.TOOLS[i]);
assertTrue(msg, enabled);
}
//
for (int i = 0; i < CollaborationTools.TOOLS.length; i++) {
myCTSMngr.setToolEnabled(CollaborationTools.TOOLS[i], false);
}
//
for (int i = 0; i < CollaborationTools.TOOLS.length; i++) {
String msg = "Tool " + CollaborationTools.TOOLS[i] + " is disabled";
boolean enabled = myCTSMngr.isToolEnabled(CollaborationTools.TOOLS[i]);
assertTrue(msg, !enabled);
}
/*
*