use of org.junit.rules.TemporaryFolder in project flink by apache.
the class TaskLocalStateStoreImplTest method before.
@Before
public void before() throws Exception {
jobID = new JobID();
allocationID = new AllocationID();
jobVertexID = new JobVertexID();
subtaskIdx = 0;
this.temporaryFolder = new TemporaryFolder();
this.temporaryFolder.create();
this.allocationBaseDirs = new File[] { temporaryFolder.newFolder(), temporaryFolder.newFolder() };
this.taskLocalStateStore = createTaskLocalStateStoreImpl(allocationBaseDirs, jobID, allocationID, jobVertexID, subtaskIdx);
}
use of org.junit.rules.TemporaryFolder in project flink by apache.
the class SnapshotDirectoryTest method beforeClass.
@BeforeClass
public static void beforeClass() throws IOException {
temporaryFolder = new TemporaryFolder();
temporaryFolder.create();
}
use of org.junit.rules.TemporaryFolder in project flink by apache.
the class StatefulOperatorChainedTaskTest method setup.
@Before
public void setup() throws IOException {
RESTORED_OPERATORS.clear();
temporaryFolder = new TemporaryFolder();
temporaryFolder.create();
}
use of org.junit.rules.TemporaryFolder in project flink by apache.
the class EventTimeWindowCheckpointingITCase method createClusterConfig.
protected Configuration createClusterConfig() throws IOException {
TemporaryFolder temporaryFolder = new TemporaryFolder();
temporaryFolder.create();
final File haDir = temporaryFolder.newFolder();
Configuration config = new Configuration();
config.setString(AkkaOptions.FRAMESIZE, String.valueOf(MAX_MEM_STATE_SIZE) + "b");
if (zkServer != null) {
config.setString(HighAvailabilityOptions.HA_MODE, "ZOOKEEPER");
config.setString(HighAvailabilityOptions.HA_ZOOKEEPER_QUORUM, zkServer.getConnectString());
config.setString(HighAvailabilityOptions.HA_STORAGE_PATH, haDir.toURI().toString());
}
return config;
}
use of org.junit.rules.TemporaryFolder in project maven-plugins by apache.
the class MinijarFilterTest method init.
@Before
public void init() throws IOException {
TemporaryFolder tempFolder = new TemporaryFolder();
tempFolder.create();
this.emptyFile = tempFolder.newFile();
}
Aggregations