(String[] args)
| 11 | public class MultiRepoSlave extends MultiRepoBase { |
| 12 | |
| 13 | public static void main(String[] args) throws Exception { |
| 14 | setUp(args); |
| 15 | try { |
| 16 | // Slave process responds to a write on DOMAIN1 |
| 17 | MultiRepoWorker reader = createWorker(DOMAIN1_ID); |
| 18 | reader.read(); |
| 19 | |
| 20 | MultiRepoWorker writer = createWorker(DOMAIN2_ID); |
| 21 | writer.write("Snap snap, grin grin, wink wink, nudge nudge, say no more?"); |
| 22 | |
| 23 | Thread.sleep(5000); |
| 24 | assert (reader.isRead()); |
| 25 | |
| 26 | } finally { |
| 27 | tearDown(); |
| 28 | } |
| 29 | } |
| 30 | } |