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

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

Introduction

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

Prototype

static boolean nullSafeIsFile(File file) 

Source Link

Usage

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