Skip to content

closing feature #6088 #360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 16, 2015

Conversation

CecileBONIN
Copy link
Member

No description provided.

@CecileBONIN
Copy link
Member Author

Please don't forget to take in account the following associated PRs 👍

Silverpeas/Silverpeas-Core#588

@CecileBONIN CecileBONIN force-pushed the feature-6088 branch 2 times, most recently from 5a12610 to c330247 Compare January 5, 2015 12:43
@SilverYoCha SilverYoCha self-assigned this Jan 6, 2015
@SilverYoCha
Copy link
Member

As indicated for the associated PR in core, the integration can not be performed because of the failure of some unit tests. On components repository, it concerns following classes:

  • AdvancedNotificationHelperTest (maillinglist)
  • TestCheckNotification (maillinglist)
  • TestNotificationHelper (maillinglist)
  • TestMailingListComponent (maillinglist)
  • TestActivitiesProcessor (maillinglist)

@CecileBONIN
Copy link
Member Author

For me, all these tests are successful

@SilverYoCha
Copy link
Member

Do you use the IDE or maven to execute the unit tests ?

@CecileBONIN
Copy link
Member Author

I tried both

@SilverYoCha
Copy link
Member

I tried again after getting the fixes of Silverpeas-Core and I still have problems. For example:
testProcessMessageSingleModerate(com.silverpeas.external.mailinglist.servlets.TestActivitiesProcessor) Time elapsed: 0.499 sec <<< ERROR!
java.lang.ExceptionInInitializerError: null
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:1174)
at com.silverpeas.util.FileUtil.loadBundle(FileUtil.java:252)
at com.stratelia.silverpeas.util.ResourceBundleWrapper.(ResourceBundleWrapper.java:38)
at com.stratelia.silverpeas.util.ResourceBundleWrapper.(ResourceBundleWrapper.java:46)
at com.stratelia.webactiv.util.ResourceLocator.getResourceBundle(ResourceLocator.java:121)
at com.stratelia.webactiv.util.ResourceLocator.getString(ResourceLocator.java:131)
at com.silverpeas.util.template.SilverpeasStringTemplateUtil.(SilverpeasStringTemplateUtil.java:38)
at com.silverpeas.util.template.SilverpeasTemplateFactory.createSilverpeasTemplateOnCore(SilverpeasTemplateFactory.java:54)
at com.stratelia.silverpeas.notificationManager.NotificationMetaData.createTemplateMessageFooter(NotificationMetaData.java:638)
at com.stratelia.silverpeas.notificationManager.NotificationMetaData.getTemplateMessageFooter(NotificationMetaData.java:646)
at com.stratelia.silverpeas.notificationManager.NotificationMetaData.getContent(NotificationMetaData.java:273)
at com.stratelia.silverpeas.notificationManager.NotificationMetaData.getContent(NotificationMetaData.java:241)
at com.stratelia.silverpeas.notificationManager.NotificationSender.getNotificationParameters(NotificationSender.java:224)
at com.stratelia.silverpeas.notificationManager.NotificationSender.notifyUser(NotificationSender.java:130)
at com.stratelia.silverpeas.notificationManager.NotificationSender.notifyUser(NotificationSender.java:74)
at com.silverpeas.mailinglist.service.notification.SimpleNotificationHelper.notifyInternals(SimpleNotificationHelper.java:132)
at com.silverpeas.mailinglist.service.notification.SimpleNotificationHelper.notifyUsersAndModerators(SimpleNotificationHelper.java:97)
at com.silverpeas.mailinglist.service.notification.SimpleNotificationHelper.notify(SimpleNotificationHelper.java:302)
at com.silverpeas.external.mailinglist.servlets.MessageProcessor.moderateMessage(MessageProcessor.java:134)
at com.silverpeas.external.mailinglist.servlets.MessageProcessor.processMessage(MessageProcessor.java:72)
at com.silverpeas.external.mailinglist.servlets.TestActivitiesProcessor.testProcessMessageSingleModerate(TestActivitiesProcessor.java:308)

testProcessMessageModerate(com.silverpeas.external.mailinglist.servlets.TestActivitiesProcessor) Time elapsed: 0.429 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.silverpeas.util.template.SilverpeasStringTemplateUtil
at com.silverpeas.util.template.SilverpeasTemplateFactory.createSilverpeasTemplateOnCore(SilverpeasTemplateFactory.java:54)
at com.stratelia.silverpeas.notificationManager.NotificationMetaData.createTemplateMessageFooter(NotificationMetaData.java:638)
at com.stratelia.silverpeas.notificationManager.NotificationMetaData.getTemplateMessageFooter(NotificationMetaData.java:646)
at com.stratelia.silverpeas.notificationManager.NotificationMetaData.getContent(NotificationMetaData.java:273)
at com.stratelia.silverpeas.notificationManager.NotificationMetaData.getContent(NotificationMetaData.java:241)
at com.stratelia.silverpeas.notificationManager.NotificationSender.getNotificationParameters(NotificationSender.java:224)
at com.stratelia.silverpeas.notificationManager.NotificationSender.notifyUser(NotificationSender.java:130)
at com.stratelia.silverpeas.notificationManager.NotificationSender.notifyUser(NotificationSender.java:74)
at com.silverpeas.mailinglist.service.notification.SimpleNotificationHelper.notifyInternals(SimpleNotificationHelper.java:132)
at com.silverpeas.mailinglist.service.notification.SimpleNotificationHelper.notifyUsersAndModerators(SimpleNotificationHelper.java:97)
at com.silverpeas.mailinglist.service.notification.SimpleNotificationHelper.notify(SimpleNotificationHelper.java:302)
at com.silverpeas.external.mailinglist.servlets.MessageProcessor.moderateMessage(MessageProcessor.java:134)
at com.silverpeas.external.mailinglist.servlets.MessageProcessor.processMessage(MessageProcessor.java:72)
at com.silverpeas.external.mailinglist.servlets.TestActivitiesProcessor.testProcessMessageModerate(TestActivitiesProcessor.java:263)

@SilverYoCha
Copy link
Member

I fixed the problems by adding the missing bundle resource "strintemplate.properties" into test resource sources of projects that contain unit tests failures.

@SilverYoCha SilverYoCha merged commit a313344 into Silverpeas:components-5.15.x Jan 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants