01: /* FixtureLoader.java
02: *
03: * DDSteps - Data Driven JUnit Test Steps
04: * Copyright (C) 2005 Jayway AB
05: * www.ddsteps.org
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License version 2.1 as published by the Free Software Foundation.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, visit
18: * http://www.opensource.org/licenses/lgpl-license.php
19: */
20:
21: package org.ddsteps.fixture;
22:
23: import junit.framework.TestCase;
24:
25: /**
26: * Interface for Fixture Loaders.
27: * <p>
28: * Instances of this interface is typically set up in a Spring context, and injected into your class.
29: *
30: * @author adam
31: * @version $Id: FixtureLoader.java,v 1.1 2005/12/03 12:51:41 adamskogman Exp $
32: */
33: public interface FixtureLoader {
34:
35: /**
36: * @param testCase
37: * @return Null if the loader cannot load a fixture for the specified test case.
38: */
39: public abstract Fixture loadFixture(TestCase testCase);
40:
41: }
|