List of usage examples for org.springframework.data.gemfire.test.support FileSystemUtils JAVA_HOME
File JAVA_HOME
To view the source code for org.springframework.data.gemfire.test.support FileSystemUtils JAVA_HOME.
Click Source Link
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)); }