hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Lindquist <jo...@kawoo.co.uk>
Subject Re: Hivemind and junit testing
Date Wed, 22 Feb 2006 16:07:01 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Christian,

You can use the HiveMind service override feature:

<implementation service-id="service.id.of.service.point.to.override">
  <invoke-factory>
    <construct class="some.override.class">
      ...
    </construct>
  </invoke-factory>
</implementation>

More info available here:

http://jakarta.apache.org/hivemind/override.html

Cheers,

Johan

Domsch, Christian wrote:
> Hi all,
> 
> Is there a way to have a testing scenario, where the testing environment
> overrides a service implementation coming from the normal environment. I
> am using maven2 and my normal classpath (target/classes) holds a
> hivemodule.xml that has a service-implementation. In my test-classpaht
> (target/test-classes) I want to specify a different implementation for
> the same service that does sth different (in my case obtain a connection
> to a test db instead of the real db).
> 
> Is that possible? And no, I am not able to inject the connection
> information into the service differently in the test scenario.
> 
> Greetings,
> 
> Christian.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> 
> 
> 

- --
you too?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD/Iwl1Tv8wj7aQ34RAqraAJ9NJ5xwwyU3bRD99ew74wf6WIvb7gCcDboT
4DP1Y+pt/Glck7Rki23TXMw=
=VepP
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message