Example usage for org.springframework.data.gemfire.snapshot SnapshotServiceFactoryBean nullSafeIsDirectory

List of usage examples for org.springframework.data.gemfire.snapshot SnapshotServiceFactoryBean nullSafeIsDirectory

Introduction

In this page you can find the example usage for org.springframework.data.gemfire.snapshot SnapshotServiceFactoryBean nullSafeIsDirectory.

Prototype

static boolean nullSafeIsDirectory(File file) 

Source Link

Usage

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));
}