File tree Expand file tree Collapse file tree
resources/in/erail/vertical/js Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ public void testVerticalDeployment(TestContext context) {
2929
3030 //Reply from vertical
3131 vertx .eventBus ().<JsonObject >consumer ("vertical.test.js" , (event ) -> {
32+ context .assertEquals ("in/erail/vertical/js/TestVerticalService.js" , event .body ());
3233 async .countDown ();
3334 });
3435
Original file line number Diff line number Diff line change 11/*/in/erail/vertical/js/TestVerticalService.js*/
22/* global vertx */
3+ var glue = Java . type ( "in.erail.glue.Glue" ) . instance ( ) ;
34
45vertx . setPeriodic ( 1000 , function ( id ) {
5- vertx . eventBus ( ) . send ( "vertical.test.js" , "success" ) ;
6- console . log ( "timer fired!" ) ;
7- } ) ;
6+ var service = glue . resolve ( "/io/vertx/core/VerticalDeployer" ) ;
7+ vertx . eventBus ( ) . send ( "vertical.test.js" , service . getVerticalNames ( ) [ 0 ] ) ;
8+ console . log ( "timer fired! " + service . getVerticalNames ( ) [ 0 ] ) ;
9+ } ) ;
You can’t perform that action at this time.
0 commit comments