List of usage examples for org.springframework.data.gemfire.snapshot SnapshotServiceFactoryBean nullSafeIsFile
static boolean nullSafeIsFile(File file)
From source file:org.springframework.data.gemfire.snapshot.SnapshotServiceFactoryBeanTest.java
@Test public void nullSafeIsFileWithFile() { assertThat(SnapshotServiceFactoryBean.nullSafeIsFile(FileSystemUtils.JAVA_EXE), is(FileSystemUtils.JAVA_EXE.isFile())); }
From source file:org.springframework.data.gemfire.snapshot.SnapshotServiceFactoryBeanTest.java
@Test public void nullSafeIsFileWithNonFiles() { assertThat(SnapshotServiceFactoryBean.nullSafeIsFile(new File("/path/to/non-existing/file.ext")), is(false));/*from w w w. ja v a 2 s . c om*/ assertThat(SnapshotServiceFactoryBean.nullSafeIsFile(new File(System.getProperty("user.dir"))), is(false)); }