Package com.thoughtworks.proxy.factory

Source Code of com.thoughtworks.proxy.factory.CglibProxyFactoryTest

/*
* Created on 28-Jul-2005
*
* (c) 2005 ThoughtWorks Ltd
*
* See license.txt for license details
*/
package com.thoughtworks.proxy.factory;

import com.thoughtworks.proxy.ProxyFactory;

import junit.framework.TestCase;


/**
* @author Jörg Schaible
*/
public class CglibProxyFactoryTest extends TestCase {

    public void testShouldDenyProxyGenerationForFinalClasses() throws Exception {
        ProxyFactory factory = new CglibProxyFactory();
        assertFalse(factory.canProxy(String.class));
    }
}
TOP

Related Classes of com.thoughtworks.proxy.factory.CglibProxyFactoryTest

TOP
Copyright © 2018 www.massapi.com. 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.