public static String getUploadFilePath String path = TaleUtilsclassgetProtectionDomaingetCodeSourcegetLocationgetPath; path = pathsubstring1 pathlength; try path = ja
@Test public void testGetUploadFilePath() { String expectedPath = new File("").getAbsolutePath() + "/"; String actualPath = TaleUtils.getUploadFilePath(); assertEquals(expectedPath, actualPath); }
原文地址: http://www.cveoy.top/t/topic/ciZC 著作权归作者所有。请勿转载和采集!