Package org.locationtech.udig.project.internal.impl

Examples of org.locationtech.udig.project.internal.impl.LayerResource


     *
     * @throws Exception
     */
    @Test
    public void testRunCoDependentInterceptors() throws Exception {
        LayerResource resource=(LayerResource) layer.getGeoResources().get(0);
       
       
        try{
            resource.testingOnly_sort(new Comparator<IResourceInterceptor<? extends Object>>(){
               
                public int compare( IResourceInterceptor< ? extends Object> o1, IResourceInterceptor< ? extends Object> o2 ) {
                    if( o1 instanceof TestInterceptorPost){
                        return -1;
                    }
                    if( o2 instanceof TestInterceptorPost){
                        return 1;
                    }
                    return 0;
                }
               
            }, false);
            TestInterceptorPost.changeType=true;
            NullProgressMonitor nullProgressMonitor = new NullProgressMonitor();
            FeatureSource<SimpleFeatureType, SimpleFeature> resolve = resource.resolve(FeatureSource.class, nullProgressMonitor);
            assertNotNull(resolve);
        }finally{
            TestInterceptorPost.changeType=false;    
            resource.testingOnly_sort(null, false);

        }
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.internal.impl.LayerResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.