同步操作将从 ldh123/TestUI 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
package util;import ldh.common.testui.util.FileUtil;import ldh.common.testui.util.LibLoaderFactory;import org.junit.Ignore;import org.junit.Test;import java.util.List;@Ignorepublic class FileUtilTest {@Testpublic void otherClass() throws Exception {String file = "E:\\testuiclass";List<String> result = FileUtil.searchFiles(file);result.stream().forEach(clazz->{System.out.println("clazz:" + clazz);});}@Testpublic void otherClass2() throws Exception {String file = "E:\\testuiclass\\";LibLoaderFactory.getInstance().loadLib(file);List<Class> result = FileUtil.searchClass("util");result.stream().forEach(clazz->{System.out.println("clazz:" + clazz);});}@Testpublic void dir() {System.out.println("Java运行时环境版本:"+System.getProperty("java.version"));System.out.println("Java 运行时环境供应商:"+System.getProperty("java.vendor"));System.out.println("Java 供应商的URL:"+System.getProperty("java.vendor.url"));System.out.println("Java安装目录:"+System.getProperty("java.home"));System.out.println("Java 虚拟机规范版本:"+System.getProperty("java.vm.specification.version"));System.out.println("Java 类格式版本号:"+System.getProperty("java.class.version"));System.out.println("Java类路径:"+System.getProperty("java.class.path"));System.out.println("加载库时搜索的路径列表:"+System.getProperty("java.library.path"));System.out.println("默认的临时文件路径:"+System.getProperty("java.io.tmpdir"));System.out.println("要使用的 JIT 编译器的名称:"+System.getProperty("java.compiler"));System.out.println("一个或多个扩展目录的路径:"+System.getProperty("java.ext.dirs"));System.out.println("操作系统的名称:"+System.getProperty("os.name"));System.out.println("操作系统的架构:"+System.getProperty("os.arch"));System.out.println("操作系统的版本:"+System.getProperty("os.version"));System.out.println("文件分隔符(在 UNIX 系统中是"/"):"+System.getProperty("file.separator"));System.out.println("路径分隔符(在 UNIX 系统中是":"):"+System.getProperty("path.separator"));System.out.println("行分隔符(在 UNIX 系统中是"/n"):"+System.getProperty("line.separator"));System.out.println("用户的账户名称:"+System.getProperty("user.name"));System.out.println("用户的主目录:"+System.getProperty("user.home"));System.out.println("用户的当前工作目录:"+System.getProperty("user.dir"));System.out.println("当前的classpath的绝对路径的URI表示法:" + Thread.currentThread().getContextClassLoader().getResource(""));System.out.println("得到的是当前的classpath的绝对URI路径:"+ FileUtilTest.class.getResource("/"));System.out.println("得到的是当前类Tfff.class文件的URI目录:"+FileUtilTest.class.getResource(""));}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。