Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getExceptionTypes (0.12 sec)

  1. src/test/java/jcifs/SmbResourceTest.java

                Method getTypeMethod = SmbResource.class.getMethod("getType");
    
                // When
                Class<?>[] existsExceptions = existsMethod.getExceptionTypes();
                Class<?>[] getTypeExceptions = getTypeMethod.getExceptionTypes();
    
                // Then
                assertEquals(1, existsExceptions.length, "exists() should declare CIFSException");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

            assertEquals(0, m1.getExceptionTypes().length);
    
            // overlaps(SmbResourceLocator): boolean, declares CIFSException
            Method m2 = clazz.getMethod("overlaps", SmbResourceLocator.class);
            assertEquals(boolean.class, m2.getReturnType());
            assertEquals(1, m2.getParameterCount());
            Class<?>[] ex = m2.getExceptionTypes();
            assertEquals(1, ex.length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

      }
    
      /** Determines whether the given method can throw InterruptedException. */
      private static boolean isInterruptible(Method method) {
        return Arrays.asList(method.getExceptionTypes()).contains(InterruptedException.class);
      }
    
      /** Sorts the given methods primarily by name and secondarily by number of parameters. */
      private static void sortMethods(Method[] methods) {
        Arrays.sort(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

          throws NoSuchMethodException {
        Method failMethod = Loser.class.getMethod("lose");
        Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.method(failMethod);
        assertThat(invokable.getExceptionTypes()).contains(TypeToken.of(AssertionError.class));
      }
    
      public void testConstructor_getOwnerType() throws NoSuchMethodException {
        @SuppressWarnings("rawtypes") // raw class ArrayList.class
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

          throws NoSuchMethodException {
        Method failMethod = Loser.class.getMethod("lose");
        Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.method(failMethod);
        assertThat(invokable.getExceptionTypes()).contains(TypeToken.of(AssertionError.class));
      }
    
      public void testConstructor_getOwnerType() throws NoSuchMethodException {
        @SuppressWarnings("rawtypes") // raw class ArrayList.class
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
Back to top