congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ThreadLeakFilters
Code IndexAdd Tabnine to your IDE (free)

How to use
ThreadLeakFilters
in
com.carrotsearch.randomizedtesting.annotations

Best Java code snippets using com.carrotsearch.randomizedtesting.annotations.ThreadLeakFilters (Showing top 10 results out of 315)

origin: dadoonet/fscrawler

@ThreadLeakFilters(filters = {TestContainerThreadFilter.class})
@ThreadLeakScope(ThreadLeakScope.Scope.SUITE)
@ThreadLeakLingering(linger = 5000) // 5 sec lingering
origin: com.carrotsearch.randomizedtesting/randomizedtesting-runner

/**
 * Instantiate a full set of {@link ThreadFilter}s for a suite.
 */
private ThreadFilter instantiateFilters(List<Throwable> errors, Class<?> suiteClass) {
 ThreadLeakFilters ann = 
   firstAnnotated(ThreadLeakFilters.class, suiteClass, DefaultAnnotationValues.class);
 final ArrayList<ThreadFilter> filters = new ArrayList<ThreadFilter>();
 for (Class<? extends ThreadFilter> c : ann.filters()) {
  try {
   filters.add(c.newInstance());
  } catch (Throwable t) {
   errors.add(t);
  }
 }
 if (ann.defaultFilters()) {
  filters.addAll(builtinFilters);
 }
 return or(filters.toArray(new ThreadFilter[filters.size()]));
}
origin: com.carrotsearch.randomizedtesting/randomizedtesting-runner

/** A dummy class serving as the source of defaults for annotations. */
@ThreadLeakScope
@ThreadLeakAction
@ThreadLeakLingering
@ThreadLeakZombies
@ThreadLeakFilters
@ThreadLeakGroup
private static class DefaultAnnotationValues {}
origin: randomizedtesting/randomizedtesting

/**
 * Instantiate a full set of {@link ThreadFilter}s for a suite.
 */
private ThreadFilter instantiateFilters(List<Throwable> errors, Class<?> suiteClass) {
 ThreadLeakFilters ann = 
   firstAnnotated(ThreadLeakFilters.class, suiteClass, DefaultAnnotationValues.class);
 final ArrayList<ThreadFilter> filters = new ArrayList<ThreadFilter>();
 for (Class<? extends ThreadFilter> c : ann.filters()) {
  try {
   filters.add(c.newInstance());
  } catch (Throwable t) {
   errors.add(t);
  }
 }
 if (ann.defaultFilters()) {
  filters.addAll(builtinFilters);
 }
 return or(filters.toArray(new ThreadFilter[filters.size()]));
}
origin: randomizedtesting/randomizedtesting

/** A dummy class serving as the source of defaults for annotations. */
@ThreadLeakScope
@ThreadLeakAction
@ThreadLeakLingering
@ThreadLeakZombies
@ThreadLeakFilters
@ThreadLeakGroup
private static class DefaultAnnotationValues {}
origin: kite-sdk/kite

@ThreadLeakFilters(defaultFilters = true, filters = {
  BadHdfsThreadsFilter.class // hdfs currently leaks thread(s)
})
origin: kite-sdk/kite

@ThreadLeakFilters(defaultFilters = true, filters = {
  BadHdfsThreadsFilter.class // hdfs currently leaks thread(s)
})
origin: kite-sdk/kite

@ThreadLeakFilters(defaultFilters = true, filters = {
  BadHdfsThreadsFilter.class // hdfs currently leaks thread(s)
})
origin: org.apache.solr/solr-test-framework

@ThreadLeakFilters(defaultFilters = true, filters = {
  SolrIgnoredThreadsFilter.class,
  QuickPatchThreadsFilter.class
origin: com.strapdata.elasticsearch.test/framework

@ThreadLeakZombies(Consequence.IGNORE_REMAINING_TESTS)
@TimeoutSuite(millis = 2 * TimeUnits.HOUR)
@ThreadLeakFilters(defaultFilters = true, filters = {
  QuickPatchThreadsFilter.class
})
com.carrotsearch.randomizedtesting.annotationsThreadLeakFilters

Most used methods

  • <init>
  • defaultFilters
  • filters

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JTextField (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now