Skip to content

Instantly share code, notes, and snippets.

@tdharris
Created July 10, 2015 16:58
Show Gist options
  • Save tdharris/130163993fd965bbccac to your computer and use it in GitHub Desktop.
Save tdharris/130163993fd965bbccac to your computer and use it in GitHub Desktop.
package lmp.test.comms.inbound;
import java.util.Collection;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import sf.test.TestBase;
@RunWith(Parameterized.class)
public class test extends TestBase
{
public test(String _data)
{
try
{
JSONObject json = new JSONObject(_data);
testCase = json.getJSONArray("testCase");
} catch (JSONException e)
{
e.printStackTrace();
}
}
@Parameters
public static Collection<String[]> data()
{
return TestBase.data("ui_" + test.class.getSimpleName() + ".json", "ui_" + test.class.getSimpleName(), "/");
}
@After
public void tearDown()
{
}
@Test
public void testtest()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment