I'm trying to test a subclass of IdentifierProvider.  I finally
realized, duuh, of course the provider isn't getting
configurationService injected if I just write "new
BlahIdentifierProvider()" in the test; one has to get the correct
instance from the ApplicationContext.  But, how?  Spring doesn't get
fired up until we are deep in DSpaceKernel, courtesy of
AbstractUnitTest.  So the test itself is outside the DI container.

-- 
Mark H. Wood, Lead System Programmer   [email protected]
Asking whether markets are efficient is like asking whether people are smart.

Attachment: pgpgvcKrcAWja.pgp
Description: PGP signature

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to