From 7ac30e778a8b5e1586dd754cda75bbf0b7d1b434 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 12 Sep 2008 03:48:36 +0000 Subject: [PATCH] Tomcat6, to test 32-bit on 64-bit --- .../hyperic/sigar/win32/test/TestRegistryKey.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bindings/java/src/org/hyperic/sigar/win32/test/TestRegistryKey.java b/bindings/java/src/org/hyperic/sigar/win32/test/TestRegistryKey.java index e19f171d..08cc49c5 100644 --- a/bindings/java/src/org/hyperic/sigar/win32/test/TestRegistryKey.java +++ b/bindings/java/src/org/hyperic/sigar/win32/test/TestRegistryKey.java @@ -89,6 +89,19 @@ public class TestRegistryKey extends SigarTestCase { sql.close(); } ms.close(); + + final String TC = + "SOFTWARE\\Apache Software Foundation\\Procrun 2.0\\Tomcat6\\Parameters\\Java"; + try { + RegistryKey tc = + RegistryKey.LocalMachine.openSubKey(TC); + traceln("Tomcat6..."); + ArrayList values = new ArrayList(); + tc.getMultiStringValue("Options", values); + assertGtZeroTrace("Options.size()", values.size()); + traceln("Options=" + values); + tc.close(); + } catch (Exception e) {} } //dont want to be writing to the registry