/* * (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); }
/* * (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(); }