@Test public void testCreateContainer() { final String temp = StringUtils.removeEnd(System.getProperty("java.io.tmpdir"), File.separator); final String s = System.getProperty("file.separator"); final Path file = new Path("/container", EnumSet.of(Path.Type.directory)); file.attributes().setRegion("region"); assertEquals(String.format("%s%su%sregion%scontainer", temp, s, s, s), new DefaultTemporaryFileService().create("u", file).getAbsolute()); }
@Override public Local create(final Path file) { return this.create(new UUIDRandomStringService().random(), file); }
DefaultTemporaryFileService extends AbstractTemporaryFileService implements TemporaryFileService { @Override public Local create(final Path file) { return this.create(new UUIDRandomStringService().random(), file); } }
DefaultTemporaryFileService extends AbstractTemporaryFileService implements TemporaryFileService { @Override public Local create(final Path file) { return this.create(new UUIDRandomStringService().random(), file); }  }
DefaultTemporaryFileService extends AbstractTemporaryFileService implements TemporaryFileService { @Override public Local create(final Path file) { return this.create(new UUIDRandomStringService().random(), file); }  @Override Local create(final Path file); @Override Local create(final String name); @Override Local create(final String uid, final Path file); }
DefaultTemporaryFileService extends AbstractTemporaryFileService implements TemporaryFileService { @Override public Local create(final Path file) { return this.create(new UUIDRandomStringService().random(), file); }  @Override Local create(final Path file); @Override Local create(final String name); @Override Local create(final String uid, final Path file);  }