Clover Coverage Report - EasyMock 2.4
Coverage timestamp: mer. juil. 2 2008 02:17:38 CEST
1   16   1   1
0   10   1   1
1     1  
1    
 
 
  JavaProxyFactory       Line # 10 1 1 100% 1.0
 
  (20)
 
1    /*
2    * Copyright (c) 2001-2008 OFFIS, Tammo Freese.
3    * This program is made available under the terms of the MIT License.
4    */
5    package org.easymock.internal;
6   
7    import java.lang.reflect.InvocationHandler;
8    import java.lang.reflect.Proxy;
9   
 
10    public class JavaProxyFactory<T> implements IProxyFactory<T> {
 
11  398 toggle @SuppressWarnings("unchecked")
12    public T createProxy(Class<T> toMock, InvocationHandler handler) {
13  398 return (T) Proxy.newProxyInstance(toMock.getClassLoader(),
14    new Class[] { toMock }, handler);
15    }
16    }