@Override public void setUp() throws IOException { rootDir = Files.createTempDir(); }
@BeforeMethod public void setUp() { this.spillPath = Files.createTempDir(); }
private TempFile() { tempDir = createTempDir(); tempDir.mkdirs(); file = new File(tempDir, "data.rcfile"); }
public TempFile() { tempDir = createTempDir(); tempDir.mkdirs(); file = new File(tempDir, "data.orc"); }
private static URL makeJarUrlWithName(String name) throws IOException { File fullPath = new File(Files.createTempDir(), name); File jarFile = JarFileFinder.pickAnyJarFile(); Files.copy(jarFile, fullPath); return fullPath.toURI().toURL(); }
@BeforeMethod public void setUp() { executor = MoreExecutors.listeningDecorator(Executors.newCachedThreadPool()); closer.register(() -> executor.shutdownNow()); spillPath1 = Files.createTempDir(); closer.register(() -> deleteRecursively(spillPath1.toPath(), ALLOW_INSECURE)); spillPath2 = Files.createTempDir(); closer.register(() -> deleteRecursively(spillPath2.toPath(), ALLOW_INSECURE)); }
public void testCreateTempDir() { File temp = Files.createTempDir(); assertTrue(temp.exists()); assertTrue(temp.isDirectory()); assertThat(temp.listFiles()).isEmpty(); assertTrue(temp.delete()); }
@BeforeClass public void setUp() throws Exception { File tempPath = createTempDir(); copyExecutable("hanging_atop.sh", tempPath); queryRunner = createQueryRunner(ImmutableMap.of("atop.executable-path", tempPath + "/hanging_atop.sh", "atop.executable-read-timeout", "1s"), AtopProcessFactory.class); }
@Setup public void setup() throws Exception { random = new Random(0); temporaryDirectory = createTempDir(); booleanWithNullFile = new File(temporaryDirectory, randomUUID().toString()); writeOrcColumnHive(booleanWithNullFile, ORC_12, NONE, BOOLEAN, createBooleanValuesWithNull().iterator()); }
@Setup public void setup() throws Exception { random = new Random(0); temporaryDirectory = createTempDir(); tinyIntWithNullFile = new File(temporaryDirectory, randomUUID().toString()); writeOrcColumnHive(tinyIntWithNullFile, ORC_12, NONE, TINYINT, createTinyIntValuesWithNull().iterator()); }
@Setup public void setup() throws Exception { random = new Random(0); temporaryDirectory = createTempDir(); decimalWithNullFile = new File(temporaryDirectory, randomUUID().toString()); writeOrcColumnHive(decimalWithNullFile, ORC_12, NONE, DECIMAL_TYPE, createDecimalValuesWithNull().iterator()); }
@Setup public void setup() throws Exception { random = new Random(0); temporaryDirectory = createTempDir(); doubleNoNullFile = new File(temporaryDirectory, randomUUID().toString()); writeOrcColumnHive(doubleNoNullFile, ORC_12, NONE, DOUBLE, createDoubleValuesNoNull().iterator()); }
@Setup public void setup() throws Exception { random = new Random(0); temporaryDirectory = createTempDir(); doubleWithNullFile = new File(temporaryDirectory, randomUUID().toString()); writeOrcColumnHive(doubleWithNullFile, ORC_12, NONE, DOUBLE, createDoubleValuesWithNull().iterator()); }
@Setup public void setup() throws Exception { random = new Random(0); temporaryDirectory = createTempDir(); booleanNoNullFile = new File(temporaryDirectory, randomUUID().toString()); writeOrcColumnHive(booleanNoNullFile, ORC_12, NONE, BOOLEAN, createBooleanValuesNoNull().iterator()); }
@Setup public void setup() throws Exception { random = new Random(0); temporaryDirectory = createTempDir(); varcharNoNullFile = new File(temporaryDirectory, randomUUID().toString()); writeOrcColumnHive(varcharNoNullFile, ORC_12, NONE, VARCHAR, createVarcharValuesNoNull().iterator()); }
@Setup public void setup() throws Exception { random = new Random(0); temporaryDirectory = createTempDir(); floatWithNullFile = new File(temporaryDirectory, randomUUID().toString()); writeOrcColumnHive(floatWithNullFile, ORC_12, NONE, REAL, createFloatValuesWithNull().iterator()); }
@Setup public void setup() throws Exception { random = new Random(0); temporaryDirectory = createTempDir(); timestampNoNullFile = new File(temporaryDirectory, randomUUID().toString()); writeOrcColumnHive(timestampNoNullFile, ORC_12, NONE, TIMESTAMP, createSqlTimeStampValuesNoNull().iterator()); }
@Setup public void setup() throws Exception { random = new Random(0); temporaryDirectory = createTempDir(); decimalNoNullFile = new File(temporaryDirectory, randomUUID().toString()); writeOrcColumnHive(decimalNoNullFile, ORC_12, NONE, DECIMAL_TYPE, createDecimalValuesNoNull().iterator()); }
@Setup public void setup() throws Exception { random = new Random(0); temporaryDirectory = createTempDir(); varcharWithNullFile = new File(temporaryDirectory, randomUUID().toString()); writeOrcColumnHive(varcharWithNullFile, ORC_12, NONE, VARCHAR, createVarcharValuesWithNulls().iterator()); }
public EmbeddedZookeeper(int port) throws IOException { this.port = port; zkDataDir = Files.createTempDir(); zkServer = new ZooKeeperServer(); FileTxnSnapLog ftxn = new FileTxnSnapLog(zkDataDir, zkDataDir); zkServer.setTxnLogFactory(ftxn); cnxnFactory = NIOServerCnxnFactory.createFactory(new InetSocketAddress(port), 0); }