Skip to content

Instantly share code, notes, and snippets.

@niftydevelopment
Created August 28, 2014 13:27
Show Gist options
  • Select an option

  • Save niftydevelopment/194d863ab65cad890b45 to your computer and use it in GitHub Desktop.

Select an option

Save niftydevelopment/194d863ab65cad890b45 to your computer and use it in GitHub Desktop.
TDD: setup test method boilerplate
@Test
@BeforeMethod
public void setup() {
MockitoAnnotations.initMocks(this);
${staticImport:importStatic('org.testng.Assert.*')}
${imp:import(org.testng.annotations.BeforeMethod,org.testng.annotations.Test,org.mockito.Mockito,org.mockito.MockitoAnnotations)}
${cursor}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment