use EventLog constants
This commit is contained in:
parent
47cc3db671
commit
34db9d884b
|
@ -27,11 +27,11 @@ public class TestEventLog extends TestCase {
|
||||||
// OK
|
// OK
|
||||||
}
|
}
|
||||||
|
|
||||||
log.open("Application");
|
log.open(EventLog.APPLICATION);
|
||||||
log.close();
|
log.close();
|
||||||
|
|
||||||
// Try to reopen using the System log
|
// Try to reopen using the System log
|
||||||
log.open("System");
|
log.open(EventLog.SYSTEM);
|
||||||
log.close();
|
log.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ public class TestEventLog extends TestCase {
|
||||||
int numRecords;
|
int numRecords;
|
||||||
EventLog log = new EventLog();
|
EventLog log = new EventLog();
|
||||||
|
|
||||||
log.open("Application");
|
log.open(EventLog.APPLICATION);
|
||||||
try {
|
try {
|
||||||
numRecords = log.getNumberOfRecords();
|
numRecords = log.getNumberOfRecords();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -53,7 +53,7 @@ public class TestEventLog extends TestCase {
|
||||||
int oldestRecord;
|
int oldestRecord;
|
||||||
EventLog log = new EventLog();
|
EventLog log = new EventLog();
|
||||||
|
|
||||||
log.open("Application");
|
log.open(EventLog.APPLICATION);
|
||||||
try {
|
try {
|
||||||
oldestRecord = log.getOldestRecord();
|
oldestRecord = log.getOldestRecord();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -67,7 +67,7 @@ public class TestEventLog extends TestCase {
|
||||||
int newestRecord;
|
int newestRecord;
|
||||||
EventLog log = new EventLog();
|
EventLog log = new EventLog();
|
||||||
|
|
||||||
log.open("Application");
|
log.open(EventLog.APPLICATION);
|
||||||
try {
|
try {
|
||||||
newestRecord = log.getNewestRecord();
|
newestRecord = log.getNewestRecord();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -82,7 +82,7 @@ public class TestEventLog extends TestCase {
|
||||||
EventLogRecord record;
|
EventLogRecord record;
|
||||||
EventLog log = new EventLog();
|
EventLog log = new EventLog();
|
||||||
|
|
||||||
log.open("Application");
|
log.open(EventLog.APPLICATION);
|
||||||
int oldestRecord = log.getOldestRecord();
|
int oldestRecord = log.getOldestRecord();
|
||||||
int numRecords = log.getNumberOfRecords();
|
int numRecords = log.getNumberOfRecords();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue