1090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson/*
21d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * Copyright (C) 2008 The Guava Authors
3090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson *
4090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson * Licensed under the Apache License, Version 2.0 (the "License");
5090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson * you may not use this file except in compliance with the License.
6090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson * You may obtain a copy of the License at
7090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson *
8090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson * http://www.apache.org/licenses/LICENSE-2.0
9090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson *
10090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson * Unless required by applicable law or agreed to in writing, software
11090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson * distributed under the License is distributed on an "AS IS" BASIS,
12090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson * See the License for the specific language governing permissions and
14090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson * limitations under the License.
15090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson */
16090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson
171d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringertpackage com.google.common.testing;
18090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson
191d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringertimport com.google.common.annotations.Beta;
20090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilsonimport com.google.common.annotations.GwtCompatible;
21090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson
22090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson/**
231d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * Any object which can accept registrations of {@link TearDown} instances.
24090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson *
251d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * @author Kevin Bourrillion
261d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * @since 10.0
27090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson */
281d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert@Beta
29090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson@GwtCompatible
301d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringertpublic interface TearDownAccepter {
31090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson  /**
321d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert   * Registers a TearDown implementor which will be run after the test proper.
331d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert   *
341d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert   * <p>In JUnit4 language, that means as an {@code @After}.
35090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson   *
361d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert   * <p>In JUnit3 language, that means during the
371d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert   * {@link junit.framework.TestCase#tearDown()} step.
38090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson   */
391d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert  void addTearDown(TearDown tearDown);
40090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson}
41