Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getPackageName (0.07 sec)

  1. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

          // a file.
          String visiblePackage = Reflection.getPackageName(cls);
          ImmutableList.Builder<Method> builder = ImmutableList.builder();
          for (Class<?> type : TypeToken.of(cls).getTypes().rawTypes()) {
            if (!Reflection.getPackageName(type).equals(visiblePackage)) {
              break;
            }
            for (Method method : type.getDeclaredMethods()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          this.declaringClass = declaringClass;
          this.factories = factories;
          this.factoryMethodsDescription = factoryMethodsDescription;
          packagesToTest.add(Reflection.getPackageName(declaringClass));
        }
    
        /**
         * Specifies that only the methods that are declared to return {@code returnType} or its subtype
         * are tested.
         *
         * @return this tester object
         */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

      }
    
      public void testGetPackageName() {
        assertEquals(
            "", new ClassInfo(FILE, "Foo.class", getClass().getClassLoader()).getPackageName());
        assertEquals(
            "a.b", new ClassInfo(FILE, "a/b/Foo.class", getClass().getClassLoader()).getPackageName());
      }
    
      // Test that ResourceInfo.urls() returns identical content to ClassLoader.getResources()
    
    
      @AndroidIncompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 20:58:01 UTC 2025
    - 23K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          this.declaringClass = declaringClass;
          this.factories = factories;
          this.factoryMethodsDescription = factoryMethodsDescription;
          packagesToTest.add(Reflection.getPackageName(declaringClass));
        }
    
        /**
         * Specifies that only the methods that are declared to return {@code returnType} or its subtype
         * are tested.
         *
         * @return this tester object
         */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/ClassUtil.java

         * Returns the package name of the specified class.
         *
         * @param clazz
         *            The class. Must not be {@literal null}.
         * @return The package name.
         */
        public static String getPackageName(final Class<?> clazz) {
            assertArgumentNotNull("clazz", clazz);
    
            final String fqcn = clazz.getName();
            final int pos = fqcn.lastIndexOf('.');
            if (pos > 0) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 25.6K bytes
    - Viewed (0)
Back to top