use of org.ethereum.util.RskTestContext in project rskj by rsksmart.
the class PreflightChecksUtilsTest method runChecks_currentJavaVersionIs11_OK.
@Test
public void runChecks_currentJavaVersionIs11_OK() throws Exception {
RskContext rskContext = new RskTestContext(new String[0]);
PreflightChecksUtils preflightChecksUtilsSpy = spy(new PreflightChecksUtils(rskContext));
when(preflightChecksUtilsSpy.getJavaVersion()).thenReturn("11");
preflightChecksUtilsSpy.runChecks();
verify(preflightChecksUtilsSpy, times(1)).getJavaVersion();
verify(preflightChecksUtilsSpy, times(1)).getIntJavaVersion("11");
rskContext.close();
}
Aggregations