1 31 32 package org.opencms.setup.comptest; 33 34 import org.opencms.setup.CmsSetupBean; 35 36 45 public class CmsSetupTestOperatingSystem implements I_CmsSetupTest { 46 47 48 public static final String TEST_NAME = "Operating System"; 49 50 53 public String getName() { 54 55 return TEST_NAME; 56 } 57 58 61 public CmsSetupTestResult execute(CmsSetupBean setupBean) { 62 63 CmsSetupTestResult testResult = new CmsSetupTestResult(this); 64 65 String osName = System.getProperty("os.name"); 66 String osVersion = System.getProperty("os.version"); 67 68 testResult.setResult(osName + " " + osVersion); 69 testResult.setHelp("Your operating system version"); 70 71 testResult.setGreen(); 73 74 return testResult; 75 } 76 } 77 | Popular Tags |