Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for testNewProxyCantWorkOnAClass (0.1 seconds)

  1. android/guava-tests/test/com/google/common/reflect/ReflectionTest.java

      }
    
      public void testNewProxy() throws Exception {
        Runnable runnable = Reflection.newProxy(Runnable.class, X_RETURNER);
        assertThat(runnable.toString()).isEqualTo("x");
      }
    
      public void testNewProxyCantWorkOnAClass() throws Exception {
        assertThrows(
            IllegalArgumentException.class, () -> Reflection.newProxy(Object.class, X_RETURNER));
      }
    
      private static final InvocationHandler X_RETURNER =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/reflect/ReflectionTest.java

      }
    
      public void testNewProxy() throws Exception {
        Runnable runnable = Reflection.newProxy(Runnable.class, X_RETURNER);
        assertThat(runnable.toString()).isEqualTo("x");
      }
    
      public void testNewProxyCantWorkOnAClass() throws Exception {
        assertThrows(
            IllegalArgumentException.class, () -> Reflection.newProxy(Object.class, X_RETURNER));
      }
    
      private static final InvocationHandler X_RETURNER =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 2.8K bytes
    - Click Count (0)
Back to Top