@Test public void nameToFilenameTest() { assertEquals("Did not get expected file name", "log_current", LogSegmentNameHelper.nameToFilename("")); String name = TestUtils.getRandomString(10); assertEquals("Did not get expected file name", name + LogSegmentNameHelper.SUFFIX, LogSegmentNameHelper.nameToFilename(name)); }
static String nameToFilename(String name) { if (name.isEmpty()) { return SINGLE_SEGMENT_LOG_FILE_NAME; } return name + SUFFIX; }
LogSegmentNameHelper { static String nameToFilename(String name) { if (name.isEmpty()) { return SINGLE_SEGMENT_LOG_FILE_NAME; } return name + SUFFIX; } }
LogSegmentNameHelper { static String nameToFilename(String name) { if (name.isEmpty()) { return SINGLE_SEGMENT_LOG_FILE_NAME; } return name + SUFFIX; }  }
LogSegmentNameHelper { static String nameToFilename(String name) { if (name.isEmpty()) { return SINGLE_SEGMENT_LOG_FILE_NAME; } return name + SUFFIX; }   }
LogSegmentNameHelper { static String nameToFilename(String name) { if (name.isEmpty()) { return SINGLE_SEGMENT_LOG_FILE_NAME; } return name + SUFFIX; }    }