Package com.p6spy.engine.test

Examples of com.p6spy.engine.test.TestConnection


      Connection unwrapped = proxy.unwrap(Connection.class);
      assertTrue(ProxyFactory.isProxy(unwrapped));
    }

    {
      TestConnection unwrapped = proxy.unwrap(TestConnection.class);
      assertTrue(ProxyFactory.isProxy(unwrapped));
    }

    {
      Wrapper unwrapped = proxy.unwrap(Wrapper.class);
View Full Code Here


    Connection proxy = ProxyFactory.createProxy(underlying, new GenericInvocationHandler<Connection>(underlying));

    // TestConnection is an interface of the actual connection but not of the proxy.  Unwrapping works
    // but a proxy is not returned
    {
      TestConnection unwrapped = proxy.unwrap(TestConnection.class);
      assertFalse(ProxyFactory.isProxy(unwrapped));
    }

    // ResultSet is not implemented at all - an exception will be thrown
    try {
View Full Code Here

TOP

Related Classes of com.p6spy.engine.test.TestConnection

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.