Class Cleaner

java.lang.Object
org.jenkinsci.test.acceptance.guice.Cleaner
Direct Known Subclasses:
TestCleaner, WorldCleaner

public class Cleaner extends Object
Performs clean-up tasks at the end of scope.

Tests and their decorators can add stuff to this cleaner to ensure some cleanup operation happens at the end of each test.

Author:
Kohsuke Kawaguchi
  • Constructor Details

    • Cleaner

      public Cleaner()
  • Method Details

    • addTask

      public void addTask(org.junit.runners.model.Statement stmt)
    • addTask

      public void addTask(Runnable r)
    • addTask

      public void addTask(Closeable c)
    • addTask

      public void addTask(Callable<?> c)
    • performCleanUp

      public void performCleanUp()