>
>
>> You're not being clear about the motivation here, or at least i can't
> infer it from this conversation. Can you just point me at a specific test
> case that Kevin has written.
>

In the current codebase look for any/all examples of
GeoserverDataDirectory.setResourceLoader.

* MockCreator.createCatalog - this is the key gotcha that effects many test
cases
* DefaultGeoServerLoaderTest
* FileExistsValidatorTest
* PyCatalogModTest

Here is an example use from PyCatalogModTest.java:

Previously:

*GeoserverDataDirectory.setResourceLoader(scriptMgr.getDataDirectory().getResourceLoader());*

The replacement would be:

*GeoServerExtensions.init("resourceLoader",
scriptMgr.getDataDirectory().getResourceLoader() );*

This is due to code now using GeoServerExtensions (rather than
GeoserverDataDirectory) to look things up.
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to