{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PackagePrefixClasspathSuite

@ExperimentalTestApi public final class PackagePrefixClasspathSuite extends Suite

java.lang.Object
   ↳ org.junit.runner.Runner
     ↳ org.junit.runners.ParentRunner
       ↳ org.junit.runners.Suite
         ↳ androidx.test.runner.suites.PackagePrefixClasspathSuite

An alternative to AndroidClasspathSuite that ignores classes whose java package is not within the current class's java package.

Example usage: * *

package com.example.foo;

@RunWith(PackagePrefixClasspathSuite.class)
public class AllTests {
}

This class was intended for large applications using AndroidClasspathSuite results in LinearAlloc errors (b/36936369) and performance overhead when scanning the entire classpath.

This API is currently experimental and subject to change in future releases.

Summary

Public constructors

Inherited methods

From class org.junit.runners.ParentRunner
Statement
Statement
List<TestRule>
void
TestClass

This method is deprecated.

void
filter(Filter filter)
abstract List<T>
Description
String
Annotation[]
final TestClass
boolean
isIgnored(T child)
void
order(Orderer orderer)
void
run(RunNotifier notifier)
final void
runLeaf(
    Statement statement,
    Description description,
    RunNotifier notifier
)
void
void
sort(Sorter sorter)
void
validatePublicVoidNoArgMethods(
    Class<Annotation> annotation,
    boolean isStatic,
    List<Throwable> errors
)
Statement
Statement
final Statement
From class org.junit.runner.Runner
int
From class org.junit.runners.Suite

Inherited fields

From class org.junit.runners.ParentRunner

Public constructors

PackagePrefixClasspathSuite

public final PackagePrefixClasspathSuite()