01: /*
02: * Created on Nov 19, 2004
03: */
04: package net.sourceforge.cruisecontrol;
05:
06: import junit.framework.TestCase;
07:
08: /**
09: * @author Jeffrey Fredrick
10: */
11: public class ProjectWrapperTest extends TestCase {
12:
13: public void testGetResult() {
14: ProjectConfig config = new ProjectConfig() {
15: public void execute() {
16: }
17: };
18: ProjectWrapper wrapper = new ProjectWrapper(config);
19:
20: assertNull(wrapper.getResult());
21:
22: wrapper.run();
23:
24: assertNotNull(wrapper.getResult());
25: }
26: }
|