Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TestDataService {
- public void test(){
- new Customer(name:'Amit').save()
- addCustomerClosure()
- throw new RuntimeException("")
- }
- def addCustomerClosure = {
- new Customer(name:'Amit Jain').save()
- }
- }
- class TestDataController {
- def test={
- testDataService.test()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement