Skip to content

Commit

Permalink
1.2.9
Browse files Browse the repository at this point in the history
环境
  • Loading branch information
HY-ZhengWei committed Feb 10, 2024
1 parent 47e96f9 commit e6a6a0b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<dependency>
<groupId>cn.openapis</groupId>
<artifactId>hy.common.base</artifactId>
<version>1.0.172</version>
<version>1.0.181</version>
<scope>provided</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<dependency>
<groupId>cn.openapis</groupId>
<artifactId>hy.common.base</artifactId>
<version>1.0.172</version>
<version>1.0.181</version>
<scope>provided</scope>
</dependency>

Expand Down
35 changes: 35 additions & 0 deletions src/test/java/org/hy/common/file/junit/JU_OpenFileCount.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package org.hy.common.file.junit;

import java.io.IOException;
import java.nio.file.FileStore;
import java.nio.file.FileSystems;
import java.nio.file.WatchService;

import org.junit.Test;





/**
* 测试单元:打开文件的数量
*
* @author ZhengWei(HY)
* @createDate 2024-01-17
* @version v1.0
*/
public class JU_OpenFileCount
{

@Test
public void test01() throws IOException
{
WatchService v_WatchService = FileSystems.getDefault().newWatchService();

for (FileStore v_Item : FileSystems.getDefault().getFileStores())
{
System.out.println(v_Item);
}
}

}

0 comments on commit e6a6a0b

Please sign in to comment.