Skip to content
This repository has been archived by the owner on Jul 9, 2022. It is now read-only.

Commit

Permalink
INTSCALA-41 - Small fixes - start() and stop()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ewan Benfield committed Jun 11, 2012
1 parent 96475b9 commit de6e18b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Expand Up @@ -86,13 +86,13 @@ class JdbcPollingChannelAdapterTests {
m: Message[_] => this.message = m
}

inboundFlow.start()
inboundFlow start

jdbcTemplate.update("insert into item (id, status) values(1,2)")

Thread.sleep(200)

inboundFlow.stop()
inboundFlow stop

assertNotNull(message)
assertEquals(1, Utils.get(message, "ID"))
Expand All @@ -116,13 +116,13 @@ class JdbcPollingChannelAdapterTests {

val outboundFlow = transform{p:String => p.toUpperCase()} --> jdbc.store(query, jdbcTemplate getDataSource)

inboundFlow.start()
inboundFlow start

outboundFlow.send("")

Thread.sleep(200)

inboundFlow.stop()
inboundFlow stop

assertNotNull(message)
assertEquals(3, Utils.get(message, "ID"))
Expand Down
Expand Up @@ -65,13 +65,13 @@ class DslUsageDemoTests {
m: Message[_] => this.message = m
}

inboundFlow.start()
inboundFlow start

jdbcTemplate.update("insert into item (id, status) values(1,2)")

Thread.sleep(200)

inboundFlow.stop()
inboundFlow stop

assertNotNull(message)

Expand All @@ -89,13 +89,13 @@ class DslUsageDemoTests {
m: Message[_] => this.message = m
}

inboundFlow.start()
inboundFlow start

jdbcTemplate.update("insert into item (id, status) values(1,2)")

Thread.sleep(200)

inboundFlow.stop()
inboundFlow stop

assertNotNull(message)

Expand All @@ -117,13 +117,13 @@ class DslUsageDemoTests {

val outboundFlow = transform{p:String => p.toUpperCase()} --> jdbc.store(query, jdbcTemplate getDataSource)

inboundFlow.start()
inboundFlow start

outboundFlow.send("")

Thread.sleep(200)

inboundFlow.stop()
inboundFlow stop

assertNotNull(message)

Expand Down

0 comments on commit de6e18b

Please sign in to comment.