Build fails because of unit test failures

2005-08-06
2013-03-07
  • Fourth Quark
    Fourth Quark
    2005-08-06

    I'm unable to build the package because of failures in unit tests. Please take a look at the following log and comment:

    ************ BEGIN LOG **************

    $ maven jar:jar
    __  __
    |  \/  |__ _Apache__ ___
    | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
    |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

    Tag library requested that is not present: 'maven' in plugin: 'maven-xdoclet-plugin-1.2'
    build:start:

    java:prepare-filesystem:

    java:compile:
    xdoclet:hibernatedoclet:

        [echo] Compiling to /home/fourth/bin/jical/target/classes
        [echo]
    ==========================================================

      NOTE: Targetting JVM 1.4, classes
      will not run on earlier JVMs

    ==========================================================
             

    java:jar-resources:
        [echo] /home/fourth/bin/jical/target/classes

    test:prepare-filesystem:

    test:test-resources:

    test:compile:
        [javac] Compiling 1 source file to /home/fourth/bin/jical/target/test-classes

    test:test:
        [junit] Running org.jical.AppTest
    BEGIN:VCALENDAR
    PRODID:JICAL
    VERSION:2.0

    BEGIN:VEVENT
    UID:jical-Fri Aug 05 18:09:16 PDT 2005
    TRANSP:OPAQUE
    DTSTART;VALUE=DATE-TIME;TZID=/softwarestudio.org/Olson_20011030_5/US/Pacifi
    c:20050805T180916
    DTEND;VALUE=DATE-TIME;TZID=/softwarestudio.org/Olson_20011030_5/US/Pacific:
    20050805T180916
    DTSTAMP:20050805T180916Z
    ORGANIZER:MAILTO:sfg@eurekait.com
    CREATED:20050805T180916Z
    LAST-MODIFIED:20050805T180916Z
    SUMMARY:THIS IS A SUMMARY
    DESCRIPTION:THIS IS A DESCRIPTION
    SEQUENCE:0
    CLASS:PUBLIC
    END:VEVENT

    END:VCALENDAR

    Aug 5, 2005 6:09:16 PM org.jical.AppTest testLastFridayOfMonthExceptDecember
    INFO: Event: Thu Jul 29 23:30:00 PDT 2004
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2004-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2005-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2006-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2007-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2008-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2009-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2010-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2011-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2012-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2013-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2014-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2015-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2016-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2017-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2018-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2019-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatYears
    INFO: Event: 2020-07-04 12:00 Hamish's Birthday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatDays
    INFO: Event: 2004-07-03 05:00 Remember to wake up.
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatMondays
    INFO: Event: 2004-07-04 06:00 Repeat Every Monday
    Aug 5, 2005 6:09:16 PM org.jical.AppTest testRepeatEverySuchDayOfMonth
    INFO: Event: 2004-07-05 10:00 Monthly Meeting Evry 1st Tuesday @ 3pm
    Aug 5, 2005 6:09:17 PM org.jical.AppTest testRepeatEveryMonWedFriWeekly
    INFO: Event: Wed Jul 07 02:00:00 PDT 2004 Mon/Wed/Fri every week @ 19:00
        [junit] Tests run: 9, Failures: 5, Errors: 0, Time elapsed: 1.144 sec
        [junit] [ERROR] TEST org.jical.AppTest FAILED

    BUILD FAILED
    File...... /home/fourth/.maven/cache/maven-test-plugin-1.6.2/plugin.jelly
    Element... fail
    Line...... 181
    Column.... 54
    There were test failures.
    Total time: 49 seconds
    Finished at: Fri Aug 05 18:09:18 PDT 2005

    ************** END LOG ****************

    I saw in another thread that this problem can be fixed by setting the time zone to Australia/Sydney. But because I am Java-illiterate I could not put in the snippet of code provided by Glenn in that thread at the correct place in the AppTest.java.

    If my problem can be fixed by changing the timezone, can someone show me *where* to put that snippet of code?

    Thanks!