Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getPackageName (0.09 sec)

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

        assertEquals("java.lang", Reflection.getPackageName(Iterable.class));
        assertEquals("java", Reflection.getPackageName("java.MyType"));
        assertEquals("java.lang", Reflection.getPackageName(Iterable.class.getName()));
        assertEquals("", Reflection.getPackageName("NoPackage"));
        assertEquals("java.util", Reflection.getPackageName(Map.Entry.class));
      }
    
      public void testNewProxy() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java

            final String path = ClassUtil.getPackageName(this.getClass()).replaceAll("\\.", "/") + "/aaa.html";
            final String contentType = MimeTypeUtil.guessContentType(path);
            assertEquals("text/html", contentType);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetFromStream_gif() throws Exception {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/links/ClassLinkMetaData.java

        public ClassLinkMetaData(ClassMetaData classMetaData) {
            this.className = classMetaData.getClassName();
            this.simpleName = classMetaData.getSimpleName();
            this.packageName = classMetaData.getPackageName();
            this.style = LinkMetaData.Style.Javadoc;
            for (MethodMetaData method : classMetaData.getDeclaredMethods()) {
                addMethod(method, style);
            }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 7.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

            assertThat(ClassUtil.isAssignableFrom(int.class, Integer.class), is(true));
        }
    
        /**
         *
         */
        @Test
        public void testGetPackageName() {
            assertThat(ClassUtil.getPackageName(getClass()), is("org.codelibs.core.lang"));
        }
    
        /**
         *
         */
        @Test
        public void testGetShortClassName() {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/GenerateDefaultImports.java

            final Set<String> packages = new LinkedHashSet<>();
            ClassMetaDataUtil.extractFromMetadata(getMetaDataFile().getAsFile().get(), getExcludedPackages().get(), classMetaData -> packages.add(classMetaData.getPackageName()));
    
            try (PrintWriter writer = new PrintWriter(new FileWriter(getImportsDestFile().getAsFile().get()))) {
                for (String packageName : packages) {
                    writer.print("import ");
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  6. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/ClassMetaDataUtil.java

                    if (classMetaData.getOuterClassName() != null) {
                        // Ignore inner classes
                        return;
                    }
                    String packageName = classMetaData.getPackageName();
                    if (excludedPackages.contains(packageName)) {
                        return;
                    }
                    for (String excludedPrefix : excludedPrefixes) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

              .toSet();
    
      public void testClassesHaveOverrides() throws Exception {
        for (ClassInfo info : ClassPath.from(getClass().getClassLoader()).getAllClasses()) {
          if (!GUAVA_PACKAGES.contains(info.getPackageName())) {
            continue;
          }
          if (info.getName().endsWith("GwtSerializationDependencies")) {
            continue; // These classes exist only for the GWT compiler, not to be used.
          }
          if (
          /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 18:53:31 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/TypeNameResolver.java

                    }
                } else if (name.equals(baseName)) {
                    return importedClass;
                }
            }
    
            candidateClassName = classMetaData.getPackageName() + "." + name;
            if (metaDataRepository.find(candidateClassName) != null) {
                return candidateClassName;
            }
    
            candidateClassName = "java.lang." + name;
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 6.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

              .toSet();
    
      public void testClassesHaveOverrides() throws Exception {
        for (ClassInfo info : ClassPath.from(getClass().getClassLoader()).getAllClasses()) {
          if (!GUAVA_PACKAGES.contains(info.getPackageName())) {
            continue;
          }
          if (info.getName().endsWith("GwtSerializationDependencies")) {
            continue; // These classes exist only for the GWT compiler, not to be used.
          }
          if (
          /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 18:53:31 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top