01: package fat;
02:
03: import fit.*;
04:
05: public class FixtureLoadFixture extends ColumnFixture {
06: public String FixtureName;
07:
08: public String LoadResult() throws Exception {
09: loadFixture();
10: return "loaded"; // we'll get an exception if it didn't load
11: }
12:
13: private void loadFixture() throws InstantiationException,
14: IllegalAccessException, ClassNotFoundException {
15: Fixture fixture = new Fixture();
16: fixture.loadFixture(FixtureName);
17: }
18:
19: public String ErrorMessage() {
20: try {
21: loadFixture();
22: return "(none)";
23: } catch (Exception e) {
24: return e.getMessage();
25: }
26: }
27: }
|