01: /**
02: *
03: */package net.sourceforge.cruisecontrol;
04:
05: import javax.management.JMException;
06: import javax.management.MBeanServer;
07:
08: public class MockProjectInterface implements ProjectInterface {
09:
10: private String name;
11: private Foo foo;
12:
13: public String getName() {
14: return name;
15: }
16:
17: public void setName(String name) {
18: this .name = name;
19: }
20:
21: public void configureProject() throws CruiseControlException {
22: }
23:
24: public void execute() {
25: }
26:
27: public void getStateFromOldProject(ProjectInterface project)
28: throws CruiseControlException {
29: }
30:
31: public void register(MBeanServer server) throws JMException {
32: }
33:
34: public void setBuildQueue(BuildQueue buildQueue) {
35: }
36:
37: public void start() {
38: }
39:
40: public void stop() {
41: }
42:
43: public void validate() throws CruiseControlException {
44: }
45:
46: public Foo createFoo() {
47: this .foo = new Foo();
48: return foo;
49: }
50:
51: public Foo getFoo() {
52: return foo;
53: }
54:
55: public class Foo {
56:
57: private String name;
58:
59: public void setName(String name) {
60: this .name = name;
61: }
62:
63: public String getName() {
64: return name;
65: }
66: }
67:
68: }
|