01: /* DataLoader.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: package org.ddsteps.data;
21:
22: import org.ddsteps.dataset.DataRow;
23: import org.ddsteps.dataset.DataTable;
24:
25: import junit.framework.TestCase;
26:
27: /**
28: * @author adamskogman
29: * @version $Id: DataLoader.java,v 1.1 2005/12/03 12:51:40 adamskogman Exp $
30: */
31: public interface DataLoader {
32:
33: /**
34: * @param testCase
35: * @param methodName
36: * @return Null if the loader cannot load the table
37: */
38: public abstract DataTable loadTable(TestCase testCase,
39: String methodName);
40:
41: /**
42: * @param testCase
43: * @param methodName
44: * @param rowId
45: * @return A DataRow
46: */
47: public abstract DataRow loadRow(TestCase testCase,
48: String methodName, String rowId);
49:
50: }
|