Example usage for org.springframework.data.gemfire.test.support FileSystemUtils JAVA_EXE

List of usage examples for org.springframework.data.gemfire.test.support FileSystemUtils JAVA_EXE

Introduction

In this page you can find the example usage for org.springframework.data.gemfire.test.support FileSystemUtils JAVA_EXE.

Prototype

File JAVA_EXE

To view the source code for org.springframework.data.gemfire.test.support FileSystemUtils JAVA_EXE.

Click Source Link

Usage

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));/*  w  w  w. j  a  va  2  s  .  c om*/
    assertThat(SnapshotServiceFactoryBean.nullSafeIsDirectory(FileSystemUtils.JAVA_EXE), is(false));
}

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