Package com.firefly.utils.classproxy

Examples of com.firefly.utils.classproxy.ArrayProxyFactoryUsingJavaCompiler


    Assert.assertThat((String)ReflectUtils.get(foo, "name"), is("foo hello"));
  }
 
  @Test
  public void testArray() throws Throwable {
    ArrayProxyFactoryUsingJavaCompiler arrayProxyFactory = ArrayProxyFactoryUsingJavaCompiler.INSTANCE;
   
    int[] intArr = new int[5];
    Integer[] intArr2 = new Integer[10];
   
    ArrayProxy intArrProxy = arrayProxyFactory.getArrayProxy(intArr.getClass());
    ArrayProxy intArr2Proxy = arrayProxyFactory.getArrayProxy(intArr2.getClass());
   
    Assert.assertThat(ReflectUtils.arraySize(intArr), is(5));
    Assert.assertThat(ReflectUtils.arraySize(intArr2), is(10));
   
    Assert.assertThat(intArrProxy.size(intArr), is(5));
View Full Code Here

TOP

Related Classes of com.firefly.utils.classproxy.ArrayProxyFactoryUsingJavaCompiler

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.