/* ***************************************************************************
 * Copyright (c) 2008 Brabenetz Harald, Austria.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 *****************************************************************************/

package org.settings4j.util;

import junit.framework.TestCase;


public class ELConnectorWrapperTest extends TestCase {

}

@@ -827,94 +827,1926 @@
 rt j
-unit.framework.TestCase;%0D%0A%0D%0A%0D%0Apublic class ELConnectorWrapperTest extends TestCase %7B%0D%0A
+ava.util.Map;%0D%0A%0D%0Aimport javax.sql.DataSource;%0D%0A%0D%0Aimport junit.framework.TestCase;%0D%0A%0D%0Aimport org.settings4j.connector.ClasspathConnector;%0D%0Aimport org.settings4j.objectresolver.JavaXMLBeansObjectResolver;%0D%0Aimport org.settings4j.objectresolver.SpringConfigObjectResolver;%0D%0Aimport org.settings4j.objectresolver.UnionObjectResolver;%0D%0A%0D%0A%0D%0A/**%0D%0A * TestCases for %7B@link ELConnectorWrapper%7D.%0D%0A * %0D%0A * @author Harald.Brabenetz%0D%0A *%0D%0A */%0D%0Apublic class ELConnectorWrapperTest extends TestCase %7B%0D%0A%0D%0A    /**%0D%0A     * TestCase for %7B@link ELConnectorWrapper#getObject()%7D.%0D%0A     */%0D%0A    public void testGetObject() %7B%0D%0A        Object result;%0D%0A        ClasspathConnector classpathConnector = new ClasspathConnector();%0D%0A        //ContentResolver contentResolver = new ClasspathContentResolver();%0D%0A        UnionObjectResolver unionObjectResolver = new UnionObjectResolver();%0D%0A        unionObjectResolver.addObjectResolver(new SpringConfigObjectResolver());%0D%0A        unionObjectResolver.addObjectResolver(new JavaXMLBeansObjectResolver());%0D%0A        classpathConnector.setObjectResolver(unionObjectResolver);%0D%0A        %0D%0A        ELConnectorWrapper connectorWrapper = new ELConnectorWrapper(new ClasspathConnector%5B%5D%7BclasspathConnector%7D);%0D%0A%0D%0A        // SpringConfigObjectResolver%0D%0A        result = connectorWrapper.getObject().get(%22org/settings4j/objectresolver/testSpring1%22);%0D%0A        assertNotNull(result);%0D%0A        assertTrue(result instanceof DataSource);%0D%0A        %0D%0A        // JavaXMLBeansObjectResolver%0D%0A        result = connectorWrapper.getObject().get(%22org/settings4j/objectresolver/test1%22);%0D%0A        assertNotNull(result);%0D%0A        assertTrue(result instanceof Map);%0D%0A        %0D%0A        // with classpath prefix%0D%0A        result = connectorWrapper.getObject().get(%22classpath:org/settings4j/objectresolver/testSpring1%22);%0D%0A        assertNotNull(result);%0D%0A        assertTrue(result instanceof DataSource);%0D%0A        %0D%0A        %0D%0A        %0D%0A    %7D
 %0D%0A%7D%0D

improve JavaDoc and CheckStyle