From 34db9d884bc4adf0208223dc4ef814618f6fcda6 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 24 Sep 2005 03:35:09 +0000 Subject: [PATCH] use EventLog constants --- .../net/hyperic/sigar/win32/test/TestEventLog.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/win32/test/TestEventLog.java b/bindings/java/src/net/hyperic/sigar/win32/test/TestEventLog.java index ea8b245f..dc983e8d 100644 --- a/bindings/java/src/net/hyperic/sigar/win32/test/TestEventLog.java +++ b/bindings/java/src/net/hyperic/sigar/win32/test/TestEventLog.java @@ -27,11 +27,11 @@ public class TestEventLog extends TestCase { // OK } - log.open("Application"); + log.open(EventLog.APPLICATION); log.close(); // Try to reopen using the System log - log.open("System"); + log.open(EventLog.SYSTEM); log.close(); } @@ -39,7 +39,7 @@ public class TestEventLog extends TestCase { int numRecords; EventLog log = new EventLog(); - log.open("Application"); + log.open(EventLog.APPLICATION); try { numRecords = log.getNumberOfRecords(); } catch (Exception e) { @@ -53,7 +53,7 @@ public class TestEventLog extends TestCase { int oldestRecord; EventLog log = new EventLog(); - log.open("Application"); + log.open(EventLog.APPLICATION); try { oldestRecord = log.getOldestRecord(); } catch (Exception e) { @@ -67,7 +67,7 @@ public class TestEventLog extends TestCase { int newestRecord; EventLog log = new EventLog(); - log.open("Application"); + log.open(EventLog.APPLICATION); try { newestRecord = log.getNewestRecord(); } catch (Exception e) { @@ -82,7 +82,7 @@ public class TestEventLog extends TestCase { EventLogRecord record; EventLog log = new EventLog(); - log.open("Application"); + log.open(EventLog.APPLICATION); int oldestRecord = log.getOldestRecord(); int numRecords = log.getNumberOfRecords();