Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. package lmp.test.comms.inbound;
  2.  
  3. import java.util.Collection;
  4.  
  5. import org.json.JSONException;
  6. import org.json.JSONObject;
  7. import org.junit.After;
  8. import org.junit.Test;
  9. import org.junit.runner.RunWith;
  10. import org.junit.runners.Parameterized;
  11. import org.junit.runners.Parameterized.Parameters;
  12.  
  13. import sf.test.TestBase;
  14.  
  15. @RunWith(Parameterized.class)
  16. public class test extends TestBase
  17. {
  18.  
  19. public test(String _data)
  20. {
  21. try
  22. {
  23. JSONObject json = new JSONObject(_data);
  24. testCase = json.getJSONArray("testCase");
  25.  
  26. } catch (JSONException e)
  27. {
  28. e.printStackTrace();
  29. }
  30. }
  31.  
  32. @Parameters
  33. public static Collection<String[]> data()
  34. {
  35. return TestBase.data("ui_" + test.class.getSimpleName() + ".json", "ui_" + test.class.getSimpleName(), "/");
  36. }
  37.  
  38. @After
  39. public void tearDown()
  40. {
  41.  
  42. }
  43.  
  44. @Test
  45. public void testtest()
  46. {
  47.  
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement