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

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

Introduction

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

Prototype

File JAVA_HOME

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

Click Source Link

Usage

From source file:org.springframework.data.gemfire.snapshot.SnapshotServiceFactoryBeanTest.java

@Test
public void isJarFileIsTrue() {
    // JRE/*from  w w  w .  jav  a2 s.c o  m*/
    File runtimeDotJar = new File(new File(FileSystemUtils.JAVA_HOME, "lib"), "rt.jar");

    // JDK
    if (!runtimeDotJar.isFile()) {
        runtimeDotJar = new File(new File(new File(FileSystemUtils.JAVA_HOME, "jre"), "lib"), "rt.jar");
        assumeThat(runtimeDotJar.isFile(), is(true));
    }

    assertThat(ArchiveFileFilter.INSTANCE.isJarFile(runtimeDotJar), is(true));
}