List of usage examples for org.springframework.data.gemfire.snapshot SnapshotServiceFactoryBean nullSafeIsDirectory
static boolean nullSafeIsDirectory(File file)
From source file:org.springframework.data.gemfire.snapshot.SnapshotServiceFactoryBeanTest.java
@Test public void nullSafeIsDirectoryWithDirectory() { assertThat(SnapshotServiceFactoryBean.nullSafeIsDirectory(new File(System.getProperty("user.dir"))), is(true));/*from w w w . j a v a2 s . co m*/ }
From source file:org.springframework.data.gemfire.snapshot.SnapshotServiceFactoryBeanTest.java
@Test public void nullSafeIsDirectoryWithNonDirectories() { assertThat(SnapshotServiceFactoryBean.nullSafeIsDirectory(new File("path/to/non-existing/directory")), is(false));//from www . j a va 2 s . co m assertThat(SnapshotServiceFactoryBean.nullSafeIsDirectory(FileSystemUtils.JAVA_EXE), is(false)); }