Skip to content

Instantly share code, notes, and snippets.

@pedrocatre
Created September 24, 2018 20:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pedrocatre/7735326b5c1488df12867a4c729528ef to your computer and use it in GitHub Desktop.
Save pedrocatre/7735326b5c1488df12867a4c729528ef to your computer and use it in GitHub Desktop.
IntelliJ live template for TestNG data provider
<template name="dataProvider" value="@org.testng.annotations.DataProvider&#10; public java.lang.Object[][] $dataProviderName$() {&#10; return new java.lang.Object[][]{&#10; {$END$}&#10; };&#10; }" description="data provider for test ng" toReformat="true" toShortenFQNames="true">
<variable name="dataProviderName" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment