You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Howard M. Lewis Ship" <hl...@comcast.net> on 2003/10/09 16:25:17 UTC
RE: HiveMind junit testfailure
It's a lot of work to make the tests run for JDK 1.3; for example, the Ant task unit tests fail
because the XML attributes are output in a different order (String.hashCode() must have changed
between releases). Although code compatibility with JDK 1.3 is desirable, its low on my priorities
for the moment.
--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
http://jakarta.apache.org/commons/sandbox/hivemind/
http://javatapestry.blogspot.com
> -----Original Message-----
> From: Michael.Frericks@Sparkassen-Informatik.de
> [mailto:Michael.Frericks@Sparkassen-Informatik.de]
> Sent: Thursday, October 09, 2003 10:15 AM
> To: hlship@apache.org
> Subject: HiveMind junit testfailure
>
>
> Hello Howard,
>
> i like the HiveMind thing very much.
> Sometimes i'm wondering, if you can read
> my thoughts and wishes of what components
> i need.
> I was looking for a web-component-framework
> and found tapestry.
> I read the eclipse code and was thinking about
> a lightweigt plugin-architecture for use in webapps,
> decided to use Avalon, but the final eclipse-like plugability
> is missing. And then i found you working on hivemind.
>
> I would like to contribute if i can.
>
> Today i was building the current hivemind-framework and
> got a test failure.
>
> Testcase: testCreateClassServiceConstructorFailure took 0,07 sec
> FAILED
> Exception message (Unable to create an instance of class
> hivemind.test.PrivateBean: hivemind.test.PrivateBean) does
> not contain [Unable to create an instance of class
> hivemind.test.PrivateBean: Class
> org.apache.commons.hivemind.impl.CreateClassServiceConstructor
> can not access a member of class hivemind.test.PrivateBean
> with modifiers "private"]
> junit.framework.AssertionFailedError: Exception message
> (Unable to create an instance of class
> hivemind.test.PrivateBean: hivemind.test.PrivateBean) does
> not contain [Unable to create an instance of class
> hivemind.test.PrivateBean: Class
> org.apache.commons.hivemind.impl.CreateClassServiceConstructor
> can not access a member of class hivemind.test.PrivateBean
> with modifiers "private"]
> at
> org.apache.commons.hivemind.test.HiveMindTestCase.assertExcept
> ionSubstring(HiveMindTestCase.java:213)
> at
> hivemind.test.TestMisc.testCreateClassServiceConstructorFailur
> e(TestMisc.java:239)
>
>
> I think it depends on the version of the jdk "1.3.1_06":
>
> Changing the method in class hivemind.test.TestMisc
>
> public void testCreateClassServiceConstructorFailure()
> {
> Module m = new MockModule();
>
> CreateClassServiceConstructor c = new
> CreateClassServiceConstructor ();
>
> c.setContributingModule(m);
>
> c.setInstanceClassName(PrivateBean.class.getName());
>
> try
> {
> c.constructCoreServiceImplementation();
> unreachable();
> }
> catch (Exception ex)
> {
> assertExceptionSubstring(
> ex,
> "Unable to create an instance of class
> hivemind.test.PrivateBean: ");
> }
>
> }
>
> leads to a BUILD SUCCESSFUL
>
>
> Mit freundlichen Grüßen
>
> Michael Frericks
> Internet/Homebanking MS/OF
>
> Sparkassen Informatik GmbH & Co.KG
> Nevinghoff 25
> 48147 Münster
> Telefon: 0251/288-3489
> Notes: Michael Frericks/4221/MS/SI/DE@Sparkassen-Informatik
> E-Mail: michael.frericks@sparkassen-informatik.de
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org