Changeset 63 for trunk/src/test/java/omq
- Timestamp:
- 06/26/13 11:31:52 (11 years ago)
- Location:
- trunk/src/test/java/omq/test
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/test/java/omq/test/calculator/CalculatorImpl.java
r54 r63 3 3 import java.io.IOException; 4 4 5 import omq.common.broker.Broker; 5 6 import omq.exception.SerializerException; 6 7 import omq.server.RemoteObject; … … 8 9 public class CalculatorImpl extends RemoteObject implements Calculator { 9 10 private int mult = 0; 11 private Broker broker; 10 12 11 13 public CalculatorImpl() throws Exception { 12 14 super(); 15 } 16 17 public CalculatorImpl(Broker broker) throws Exception { 18 super(); 19 this.broker = broker; 13 20 } 14 21 … … 35 42 @Override 36 43 public void asyncDivideByZero() throws IOException, SerializerException { 37 //ZeroEvent ze = new ZeroEvent("my zero event", "zero-event");38 // Broker.trigger(ze);44 ZeroEvent ze = new ZeroEvent("my zero event", "zero-event"); 45 broker.trigger(ze); 39 46 // notifyEvent(ze); 40 47 }
Note: See TracChangeset
for help on using the changeset viewer.