01: /* Fixture.java
02: *
03: * DDSteps - Data Driven JUnit Test Steps
04: * Copyright (C) 2005 Jayway AB
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License version 2.1 as published by the Free Software Foundation.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library; if not, visit
17: * http://www.opensource.org/licenses/lgpl-license.php
18: */
19: package org.ddsteps.fixture;
20:
21: import java.io.Serializable;
22:
23: /**
24: * A fixture is a set of background data that is set up before the test and torn down after.
25: * <p>
26: * Fixture extends Serializable, so they can be cahced using ehcache.
27: *
28: * @author adam
29: * @version $Id: Fixture.java,v 1.1 2005/12/03 12:51:41 adamskogman Exp $
30: */
31: public interface Fixture extends Serializable {
32:
33: /**
34: * Set up the fixture.
35: *
36: * @throws Exception
37: */
38: public abstract void setUp() throws Exception;
39:
40: /**
41: * Tear down the fixture.
42: *
43: * @throws Exception
44: */
45: public abstract void tearDown() throws Exception;
46:
47: }
|