StroomFileNameUtil { public static String getIdPath(final long id) { final String idString = idToString(id); final String path = idToPathId(idString) + PATH_SEPARATOR + idString; return clean(path); } private  StroomFileNameUtil(); static String getIdPath(final long id); static String idToString(long id); static String idToPathId(final String id); static String constructFilename(final String executionUuid,
                                           final long id,
                                           final String template,
                                           final AttributeMap attributeMap,
                                           final String... fileExtensions); static final String EXECUTION_UUID; static final String PATH_ID; static final String ID; }
@Test void testPad() { assertThat(StroomFileNameUtil.getIdPath(1)).isEqualTo("001"); assertThat(StroomFileNameUtil.getIdPath(999)).isEqualTo("999"); assertThat(StroomFileNameUtil.getIdPath(1000)).isEqualTo("001/001000"); assertThat(StroomFileNameUtil.getIdPath(1999)).isEqualTo("001/001999"); assertThat(StroomFileNameUtil.getIdPath(9111999)).isEqualTo("009/111/009111999"); }