use of com.hazelcast.jet.config.ResourceConfig in project hazelcast-jet by hazelcast.
the class ResourceConfigTest method testAddResource_with_File.
@Test
public void testAddResource_with_File() throws Exception {
JobConfig config = new JobConfig();
File file = new File("/path/to/resource");
config.addResource(file);
ResourceConfig resourceConfig = config.getResourceConfigs().iterator().next();
assertEquals("resource", resourceConfig.getId());
assertFalse(resourceConfig.isArchive());
assertEquals(file.toURI().toURL(), resourceConfig.getUrl());
}
Aggregations