Added getStatus() method and now also testing for the correct status.
[utils] / system / spring / src / test / java / org / wamblee / system / spring / BlaService.java
1 package org.wamblee.system.spring;
2
3 public class BlaService {
4         private HelloService _hello; 
5         
6         public BlaService(HelloService aService) {
7                 if ( aService == null ) { 
8                         throw new IllegalArgumentException("helloService is null"); 
9                 }
10                 _hello = aService; 
11         }
12         
13         public String execute() { 
14                 return _hello.say(); 
15         }
16         
17         public void stop() { 
18                 System.out.println("Blaservice stopping");
19         }
20 }