keeganwitt / gmock

Automatically exported from code.google.com/p/gmock
6 stars 2 forks source link

Support for @Play AST transformer #103

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Example:

@Play @Test
void something() {
  somecode()
}

will be transformed to

@Test
void something() {
  play {
    somecode()
  }
}

It can avoid the indent of the play closure.

It will be useful while we have stubs. Image that the user just need some stubs 
and doesn't need to verify them, then he can create stubs in setUp(), and use 
@Play to avoid an additional indent.

Original issue reported on code.google.com by JohnnyJianHY on 24 Dec 2010 at 2:17