Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 27631 invoked from network); 7 Jan 2011 15:12:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jan 2011 15:12:39 -0000 Received: (qmail 58254 invoked by uid 500); 7 Jan 2011 15:12:36 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 58067 invoked by uid 500); 7 Jan 2011 15:12:36 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 58051 invoked by uid 99); 7 Jan 2011 15:12:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jan 2011 15:12:34 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.227.126.186] (HELO moutng.kundenserver.de) (212.227.126.186) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jan 2011 15:12:28 +0000 Received: from [10.0.0.7] (i07m-89-86-92-81.d4.club-internet.fr [89.86.92.81]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MGoRl-1PWX260Evh-00DCRM; Fri, 07 Jan 2011 16:12:07 +0100 Subject: Re: Diff JUnit eclipse and maven, UTF-8 ? Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/alternative; boundary=Apple-Mail-5-425829834 From: "Carpentier Xavier (GreenIvory)" In-Reply-To: Date: Fri, 7 Jan 2011 16:12:05 +0100 Cc: =?iso-8859-1?Q?Taesch_Val=E9rie?= Message-Id: References: <2CBA5F4B-2E33-4FA8-92C1-68F3EB898064@greenivory.com> To: Maven Users List , angrygreg@gmail.com X-Mailer: Apple Mail (2.1082) X-Provags-ID: V02:K0:I72EO917zuV9UvKPEGHgS6G+HVz1QkGsPvPLXIOuhdW QRPeSebF9TdsX3tr7Wcvb0pl770QEjiWo1w2d9L0ZgeQq/UGqb CY9l67QHToK1kdnJ4U1lU+iMpBgGKcXHNha4+U+uuNg5yuInjI 3+fecHS3u/+ursDDmFzetQPTQrBvZEYxrlVKAHv3jKPdKMBoEj Kmo4uBz93839/xRhQl8TDetJPIuCrTX5kZHYxwBkA4= X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-5-425829834 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 "France3 Franche-Comt?" !=3D "France3 Franche-Comt=E9" only when it is = maven 3. Not in maven 2 on Hudson, why ? With JUnit : ok no message With maven3 : = --------------------------------------------------------------------------= ----- Test set: com.greenivory.redlion.commons.utils.ProjectConverterTest = --------------------------------------------------------------------------= ----- Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.134 = sec <<< FAILURE! = testXmlToEntity(com.greenivory.redlion.commons.utils.ProjectConverterTest)= Time elapsed: 0.095 sec <<< FAILURE! java.lang.AssertionError:=20 Expected: is "France3 Franche-Comt?" got: "France3 Franche-Comt=E9" at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:21) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8) at = com.greenivory.redlion.commons.utils.ProjectConverterTest.testXmlToEntity(= ProjectConverterTest.java:451) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:= 39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm= pl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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:243) at junit.framework.TestSuite.run(TestSuite.java:238) at = org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:= 83) at = org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:= 35) at = org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provi= der.java:146) at = org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java= :97) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:= 39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm= pl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at = org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(P= roviderFactory.java:103) at $Proxy0.invoke(Unknown Source) at = org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireSt= arter.java:145) at = org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(Surefi= reStarter.java:87) at = org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) On Jan 7, 2011, at 1:09 PM, Greg Akins wrote: > On Fri, Jan 7, 2011 at 4:49 AM, Carpentier Xavier (GreenIvory) > wrote: >> Hi, >>=20 >> Some differences occur when executing JUnit test between maven 3 in = eclipse (fail) and JUnit embedded eclipse, hudson maven 2 (ok). Maybe = because it's an UTF-8 problem. >=20 > Could be, I supposed.. Can you share the error message, or the > differing results? >=20 > Is it that a JUnit test failed in Maven3, but didn't fail in Eclipse? > I've had this happen because of dependencies, artifacts not being > cleaned and (the strangest one, but it wasn't Maven's fault or > Eclipse/JUnit) files weren't read from the same order from the file > system >=20 >>=20 >> Has somebody heard about that ? >>=20 >> Twitter @xcapetir >> mail@xavier-carpentier.fr >=20 >=20 >=20 > --=20 > Greg Akins >=20 > http://insomnia-consulting.org > http://www.pghcodingdojo.org > http://pittjug.dev.java.net > http://twitter.com/akinsgre > http://www.linkedin.com/in/akinsgre >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org >=20 --Apple-Mail-5-425829834--