The error is coming again and again.
Below is my environment.
OS: Windows XP Professional SP 2
JDK: jdk-1_5_0_15-nb-6_0_1-windows-ml
Below is the complete result from the failing test case..
***********************************
----------------------------------------------------------------------------
---
Test set: org.apache.sling.apt.parser.internal.SlingAptParserImplTest
----------------------------------------------------------------------------
---
Tests run: 12, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.13 sec
<<< FAILURE!
testSections(org.apache.sling.apt.parser.internal.SlingAptParserImplTest)
Time elapsed: 0.01 sec <<< FAILURE!
junit.framework.ComparisonFailure: null expected:<...2>s1</h2><h3>s2</h3>[]
<h3>s2b</h3><h4>s3<...> but was:<...2>s1</h2><h3>s2</h3>[
]
<h3>s2b</h3><h4>s3<...>
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at
org.apache.sling.apt.parser.internal.SlingAptParserImplTest.parse(SlingAptPa
rserImplTest.java:71)
at
org.apache.sling.apt.parser.internal.SlingAptParserImplTest.parse(SlingAptPa
rserImplTest.java:75)
at
org.apache.sling.apt.parser.internal.SlingAptParserImplTest.testSections(Sli
ngAptParserImplTest.java:122)
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:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76
)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62
)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(Ab
stractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractD
irectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
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.booter.SurefireBooter.runSuitesInProcess(SurefireB
ooter.java:338)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997
)
testTitle(org.apache.sling.apt.parser.internal.SlingAptParserImplTest) Time
elapsed: 0 sec <<< FAILURE!
junit.framework.ComparisonFailure: null expected:<...h1>H1 title now</h1>[]
</body>
</html>> but was:<...h1>H1 title now</h1>[
]
</body>
</html>>
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at
org.apache.sling.apt.parser.internal.SlingAptParserImplTest.parse(SlingAptPa
rserImplTest.java:71)
at
org.apache.sling.apt.parser.internal.SlingAptParserImplTest.testTitle(SlingA
ptParserImplTest.java:146)
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:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76
)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62
)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(Ab
stractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractD
irectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
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.booter.SurefireBooter.runSuitesInProcess(SurefireB
ooter.java:338)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997
)
***********************************
Thanks & Regards,
Nitesh Ambuj
-----Original Message-----
From: Peter Svensson [mailto:[EMAIL PROTECTED]
Sent: Monday, March 17, 2008 1:55 PM
To: [email protected]
Subject: Re: Failed Tests
Hmm. have you checked that you are using JDK 1.5?
I have had issues building Sling with 1.6
Cheers,
PS
On Mon, Mar 17, 2008 at 9:22 AM, Carsten Ziegeler <[EMAIL PROTECTED]>
wrote:
> HI,
>
> I just tried to build Sling using "mvn clean install" from the top level
> directory and it works for me without any errors.
>
> Can you please retry and if it still fails post more informating (about
> your environment and the result from the failing test cases)?
>
> Thanks
> Carsten
>
> Nitesh Ambuj wrote:
> > Hi All,
> >
> >
> >
> > I'm new to Sling and I'm following steps mentioned at
> >
> >
> >
> > <
> http://incubator.apache.org/sling/site/discover-sling-in-15-minutes.html>
> > http://incubator.apache.org/sling/site/discover-sling-in-15-minutes.html
> >
> >
> >
> > While running the step
> >
> >
> >
> > "mvn clean install"
> >
> >
> >
> > I'm getting below error.
> >
> >
> >
> >
>
****************************************************************************
> > *****
> >
> >
> >
> > Failed tests:
> >
> > testSections(
> org.apache.sling.apt.parser.internal.SlingAptParserImplTest)
> >
> > testTitle(org.apache.sling.apt.parser.internal.SlingAptParserImplTest)
> >
> >
> >
> > Tests run: 12, Failures: 2, Errors: 0, Skipped: 0
> >
> >
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [ERROR] BUILD FAILURE
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] There are test failures.
> >
> >
> >
> > Please refer to E:\SVN\extensions\apt\parser\target\surefire-reports for
> the
> > ind
> >
> > ividual test results.
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] For more information, run Maven with the -e switch
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] Total time: 1 minute 40 seconds
> >
> > [INFO] Finished at: Mon Mar 17 11:04:45 IST 2008
> >
> > [INFO] Final Memory: 30M/63M
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> >
> >
> >
>
****************************************************************************
> > *****
> >
> >
> >
> > Can anybody please tell me whether this is related to Sling or MVN and
> also
> > how to resolve this?
> >
> >
> >
> > Thanks & Regards,
> >
> > Nitesh Ambuj
> >
> >
> >
> >
>
>
> --
> Carsten Ziegeler
> [EMAIL PROTECTED]
>