@Test public void testSolarisProcessManagerParsing() throws Exception { var pm = new MockSolarisProcessManager(getRegex(), "5.11", Map.of("ps", List.of(SOL_PS1, SOL_PS2, SOL_PS3, SOL_PS4))); assertEquals(Long.valueOf(2788), pm.findPid().orElseThrow(() -> new AssertionError("No PID found"))); }
@Override public Optional<Long> findPid() throws IOException { if (SOLARIS_11.equals(solarisVersion)) { return super.findPid(); } else { throw new RuntimeException("Unsupported Solaris version: " + solarisVersion); } }
SolarisProcessManager extends UnixProcessManager { @Override public Optional<Long> findPid() throws IOException { if (SOLARIS_11.equals(solarisVersion)) { return super.findPid(); } else { throw new RuntimeException("Unsupported Solaris version: " + solarisVersion); } } }
SolarisProcessManager extends UnixProcessManager { @Override public Optional<Long> findPid() throws IOException { if (SOLARIS_11.equals(solarisVersion)) { return super.findPid(); } else { throw new RuntimeException("Unsupported Solaris version: " + solarisVersion); } } protected  SolarisProcessManager(Pattern processPattern, String solarisVersion); }
SolarisProcessManager extends UnixProcessManager { @Override public Optional<Long> findPid() throws IOException { if (SOLARIS_11.equals(solarisVersion)) { return super.findPid(); } else { throw new RuntimeException("Unsupported Solaris version: " + solarisVersion); } } protected  SolarisProcessManager(Pattern processPattern, String solarisVersion); @Override Optional<Long> findPid(); }
SolarisProcessManager extends UnixProcessManager { @Override public Optional<Long> findPid() throws IOException { if (SOLARIS_11.equals(solarisVersion)) { return super.findPid(); } else { throw new RuntimeException("Unsupported Solaris version: " + solarisVersion); } } protected  SolarisProcessManager(Pattern processPattern, String solarisVersion); @Override Optional<Long> findPid();  }