private URI getTargetUri() { try { return FileNameUtil.createPath( getConfiguration(), "target/testing/" + getClass().getSimpleName(), "dummy", "dummy") .toUri(); } catch (BulkLoaderSystemException e) { throw new AssertionError(e); } }
/** * Resolves target location. * * @param bean importer bean * @param user current user name * @param location target location * @return the resolved location * @throws BulkLoaderSystemException if failed to resolve */ protected URI resolveLocation(ImportBean bean, String user, String location) throws BulkLoaderSystemException { Configuration conf = new Configuration(); URI dfsFilePath = FileNameUtil.createPath(conf, location, bean.getExecutionId(), user).toUri(); return dfsFilePath; }