Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getTopLevelClasses (0.14 sec)

  1. guava-gwt/test/com/google/common/GwtTestSuite.java

    public class GwtTestSuite extends TestCase {
      public static Test suite() throws IOException {
        GWTTestSuite suite = new GWTTestSuite();
        for (ClassInfo info :
            ClassPath.from(GwtTestSuite.class.getClassLoader()).getTopLevelClasses()) {
          if (info.getName().endsWith("_gwt")) {
            Class<?> clazz = info.load();
            // TODO(cpovirk): why does asSubclass() throw? Is it something about ClassLoaders?
            @SuppressWarnings("unchecked")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

        List<Class<?>> classes = new ArrayList<>();
        String packageName = getClass().getPackage().getName();
        for (ClassPath.ClassInfo classInfo :
            ClassPath.from(getClass().getClassLoader()).getTopLevelClasses(packageName)) {
          Class<?> cls;
          try {
            cls = classInfo.load();
          } catch (NoClassDefFoundError e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

        URL url = makeJarUrlWithName("To test unescaped spaces in jar file name.jar");
        URLClassLoader classloader = new URLClassLoader(new URL[] {url}, null);
        assertThat(ClassPath.from(classloader).getTopLevelClasses()).isNotEmpty();
      }
    
      @AndroidIncompatible // ClassPath is documented as not supporting Android
    
      public void testScan_classPathCycle() throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 20:58:01 UTC 2025
    - 23K bytes
    - Viewed (0)
Back to top