Skip to content

Commit

Permalink
Tweak to asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
timyates committed Jun 13, 2013
1 parent 4709838 commit 48ded71
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/test/resources/integration_tests/groovy/rx.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,14 @@ def testRxMapMany() {
}
.mapMany { message ->
assertEquals( message.body().getString( "status" ), "ok" )
assertEquals( message.body().getArray( "result" )*.ID == [ 1, 2, 3 ] )
assertEquals( message.body().getArray( "result" )*.ID, [ 1, 2, 3 ] )
rxEventBus.send( "test.persistor", [
action: 'select',
stmt: 'SELECT * FROM test ORDER BY age ASC' ] )
}
.mapMany { message ->
assertEquals( message.body().getString( "status" ), "ok" )
def result = message.body().getArray( "result" )
assertEquals( result.get( 0 ).getNumber( "AGE" ), 29 )
assertEquals( result.get( 1 ).getNumber( "AGE" ), 42 )
assertEquals( result.get( 2 ).getNumber( "AGE" ), 65 )
assertEquals( message.body().getArray( "result" )*.AGE, [ 29, 42, 65 ] )
rxEventBus.send( "test.persistor", [
action: 'execute',
stmt: 'DROP TABLE test' ] )
Expand Down

0 comments on commit 48ded71

Please sign in to comment.