Class Helper


  • public class Helper
    extends Object
    Various static methods used in several test cases.
    • Constructor Detail

      • Helper

        public Helper()
    • Method Detail

      • getCalendar

        public static GregorianCalendar getCalendar​(int year,
                                                    int month,
                                                    int day,
                                                    int hours,
                                                    int minutes,
                                                    int seconds)
        Gets a Calendar object.
      • getCalendar

        public static GregorianCalendar getCalendar​(int year,
                                                    int month,
                                                    int day,
                                                    int hours,
                                                    int minutes,
                                                    int seconds,
                                                    TimeZone tz)
        Gets a Calendar object with a specific timezone
      • makeNuxeoRepository

        public static Map<String,​String> makeNuxeoRepository​(CoreSession session,
                                                                   boolean addProxy)
        Creates data in the repository using the Nuxeo API. This is then used as a starting point by unit tests.
      • sleepForAuditGranularity

        public static void sleepForAuditGranularity()
        For audit, make sure event dates don't have the same millisecond.