예제 #1
0
 /*
  * (non-Javadoc)
  *
  * @see org.glassfish.jersey.test.JerseyTest#setUp()
  */
 @BeforeTest
 public void setUp() throws Exception {
   super.setUp();
   queryService = LensServices.get().getService(QueryExecutionService.NAME);
   lensSessionId = queryService.openSession("foo", "bar", new HashMap<String, String>());
   LensTestUtil.createTable(
       testTable,
       target(),
       lensSessionId,
       "(ID INT, IDSTR STRING, IDARR ARRAY<INT>, IDSTRARR ARRAY<STRING>)");
   LensTestUtil.loadDataFromClasspath(
       testTable, TestResourceFile.TEST_DATA2_FILE.getValue(), target(), lensSessionId);
 }
예제 #2
0
 /*
  * (non-Javadoc)
  *
  * @see org.glassfish.jersey.test.JerseyTest#tearDown()
  */
 @AfterTest
 public void tearDown() throws Exception {
   LensTestUtil.dropTable(testTable, target(), lensSessionId);
   queryService.closeSession(lensSessionId);
   super.tearDown();
 }