On 4/16/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> If you look in the directory:
> c:\workspace\tobago\theme\scarborough\target/surefire-reports
>
> You should be able to find a file named something like
> DateUnitTest.txt (and .xml) which will contain the specific details
> for this error. Please find that file and send us back the contents
> (with the error specifics) so we can try to see what's going on... ;-)
>
> Wayne
The output from the two files are:
$ cat
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.DateUnitTest.txt
-------------------------------------------------------------------------------
Battery:
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.DateUnitTest
-------------------------------------------------------------------------------
Tests run: 6, Failures: 1, Errors: 0, Time elapsed: 2.078 sec
testEnglishMonths(org.apache.myfaces.tobago.renderkit.html.scarborough.standard.DateUnitTest)
Time elapsed: 0.25 sec <
<< FAILURE!
[ stdout ] ---------------------------------------------------------------
[ stderr ] ---------------------------------------------------------------
[ stacktrace ] -----------------------------------------------------------
junit.framework.AssertionFailedError: expected:<4> but was:<3>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:201)
at junit.framework.Assert.assertEquals(Assert.java:207)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.DateUnitTest.checkField(DateUnitTest.java:179)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.DateUnitTest.checkFormat(DateUnitTest.java:174)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.DateUnitTest.testEnglishMonths(DateUnitTest.jav
a:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
at
org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:313)
at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221)
at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:47
5)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
and
$ cat
TEST-org.apache.myfaces.tobago.renderkit.html.scarborough.standard.DateUnitTest.xml
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite errors="0" tests="6" time="2.094" failures="1"
name="org.apache.myfaces.tobago.renderkit.html.scarborough.sta
ndard.DateUnitTest">
<properties>
<property value="Java(TM) 2 Runtime Environment, Standard Edition"
name="java.runtime.name"/>
<property value="c:\Program Files\Java\jdk1.5.0_06\jre\bin"
name="sun.boot.library.path"/>
<property value="1.5.0_06-b05" name="java.vm.version"/>
<property value="Sun Microsystems Inc." name="java.vm.vendor"/>
<property value="http://java.sun.com/" name="java.vendor.url"/>
<property value=";" name="path.separator"/>
<property value="Java HotSpot(TM) Client VM" name="java.vm.name"/>
<property value="sun.io" name="file.encoding.pkg"/>
<property value="US" name="user.country"/>
<property value="Service Pack 2" name="sun.os.patch.level"/>
<property value="Java Virtual Machine Specification"
name="java.vm.specification.name"/>
<property value="c:\workspace\tobago\theme\scarborough" name="user.dir"/>
<property value="1.5.0_06-b05" name="java.runtime.version"/>
<property value="sun.awt.Win32GraphicsEnvironment"
name="java.awt.graphicsenv"/>
<property value="c:\workspace\tobago\theme\scarborough" name="basedir"/>
<property value="c:\Program
Files\Java\jdk1.5.0_06\jre\lib\endorsed" name="java.endorsed.dirs"/>
<property value="x86" name="os.arch"/>
<property value="c:\DOCUME~1\JULIAN~1.KLA\LOCALS~1\Temp\"
name="java.io.tmpdir"/>
<property value="
" name="line.separator"/>
<property value="Sun Microsystems Inc."
name="java.vm.specification.vendor"/>
<property value="" name="user.variant"/>
<property value="Windows XP" name="os.name"/>
<property value="c:\maven-2.0.4/bin/m2.conf" name="classworlds.conf"/>
<property value="Cp1252" name="sun.jnu.encoding"/>
<property value="c:\Program
Files\Java\jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\cygwin\usr\local\bin;C:\c
ygwin\bin;C:\cygwin\bin;C:\cygwin\usr\X11R6\bin;c:\oracle\product\10.2.0\db_2\bin;c:\WINDOWS\system32;c:\WINDOWS;c:\WIND
OWS\System32\Wbem;c:\Program Files\Java\jdk1.5.0_06\bin;c:\Program
Files\QuickTime\QTSystem\;c:\Program Files\Microsoft
SQL Server\90\Tools\binn\;c:\Program Files\Subversion\bin;c:\Program
Files\Subversion\bin;c:\apache-ant-1.6.5\bin;c:\Pro
gram Files\Common Files\GTK\2.0\bin;C:\cygwin\bin;c:\maven-2.0.4\bin"
name="java.library.path"/>
<property value="Java Platform API Specification"
name="java.specification.name"/>
<property value="49.0" name="java.class.version"/>
<property value="HotSpot Client Compiler" name="sun.management.compiler"/>
<property value="5.1" name="os.version"/>
<property value="C:\Documents and Settings\julian.klappenbach"
name="user.home"/>
<property value="America/Los_Angeles" name="user.timezone"/>
<property value="sun.awt.windows.WPrinterJob" name="java.awt.printerjob"/>
<property value="Cp1252" name="file.encoding"/>
<property value="1.5" name="java.specification.version"/>
<property value="julian.klappenbach" name="user.name"/>
<property value="c:\maven-2.0.4/core/boot/classworlds-1.1.jar"
name="java.class.path"/>
<property value="1.0" name="java.vm.specification.version"/>
<property value="32" name="sun.arch.data.model"/>
<property value="c:\Program Files\Java\jdk1.5.0_06\jre" name="java.home"/>
<property value="Sun Microsystems Inc." name="java.specification.vendor"/>
<property value="en" name="user.language"/>
<property value="sun.awt.windows.WToolkit" name="awt.toolkit"/>
<property value="mixed mode" name="java.vm.info"/>
<property value="1.5.0_06" name="java.version"/>
<property value="c:\Program Files\Java\jdk1.5.0_06\jre\lib\ext"
name="java.ext.dirs"/>
<property value="c:\Program
Files\Java\jdk1.5.0_06\jre\lib\rt.jar;c:\Program
Files\Java\jdk1.5.0_06\jre\lib\i18n.jar
;c:\Program Files\Java\jdk1.5.0_06\jre\lib\sunrsasign.jar;c:\Program
Files\Java\jdk1.5.0_06\jre\lib\jsse.jar;c:\Program
Files\Java\jdk1.5.0_06\jre\lib\jce.jar;c:\Program
Files\Java\jdk1.5.0_06\jre\lib\charsets.jar;c:\Program Files\Java\jdk1
.5.0_06\jre\classes" name="sun.boot.class.path"/>
<property value="Sun Microsystems Inc." name="java.vendor"/>
<property value="c:\maven-2.0.4" name="maven.home"/>
<property value="C:\Documents and
Settings\julian.klappenbach\.m2\repository" name="localRepository"/>
<property value="\" name="file.separator"/>
<property value="http://java.sun.com/cgi-bin/bugreport.cgi"
name="java.vendor.url.bug"/>
<property value="little" name="sun.cpu.endian"/>
<property value="UnicodeLittle" name="sun.io.unicode.encoding"/>
<property value="windows" name="sun.desktop"/>
<property value="" name="sun.cpu.isalist"/>
</properties>
<testcase time="0.812" name="testNumberOnlyDateFormats"/>
<testcase time="0.25" name="testEnglishMonths">
<failure type="junit.framework.AssertionFailedError"
message="expected:&lt;4&gt; but was:&lt;3&gt;">
junit.framework.AssertionFailedError: expected:<4> but was:<3>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:201)
at junit.framework.Assert.assertEquals(Assert.java:207)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.DateUnitTest.checkField(DateUnitTest.java:179)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.DateUnitTest.checkFormat(DateUnitTest.java:174)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.DateUnitTest.testEnglishMonths(DateUnitTest.jav
a:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
at
org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:313)
at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221)
at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:47
5)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
</failure>
</testcase>
<testcase time="0.75" name="testTwoDigitYears"/>
<testcase time="0.172" name="testEnglishWeekDays"/>
<testcase time="0.031" name="testLocalization"/>
<testcase time="0.015" name="testDummy"/>
</testsuite>