Sign in
apache
/
groovy
/
refs/tags/GROOVY_1_1_BETA_3
/
.
/
groovy-core
/
src
/
test
/
groovy
/
txn
/
TransactionTest.groovy
blob: 3e5b9b75c98063fadc2067af369167e204b00485 [
file
] [
log
] [
blame
]
package
groovy
.
txn
class
TransactionTest
extends
GroovyTestCase
{
void
testTxn
()
{
def
builder
=
new
TransactionBuilder
()
builder
.
transaction
{
run
{
println
(
"run code!"
)
}
onError
{
println
(
"on error!"
)
}
onSuccess
{
println
(
"on success!"
)
}
}
}
}