deleteonclosefileinputstreamtest.java
来自「Xfire文件 用于开发web service 的一个开源工具 很好用的」· Java 代码 · 共 17 行
JAVA
17 行
package org.codehaus.xfire.util;import java.io.File;import junit.framework.TestCase;public class DeleteOnCloseFileInputStreamTest extends TestCase { public void testIt() throws Exception { String property = System.getProperty("java.io.tmpdir"); File tempFile = new File(property, getClass().getName()); assertTrue(tempFile.createNewFile()); DeleteOnCloseFileInputStream is = new DeleteOnCloseFileInputStream(tempFile); is.close(); assertFalse("file was not deleted.", tempFile.exists()); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?