jdk/test/sun/tools/jconsole/ResourceCheckTest.java
author tbell
Tue, 11 Nov 2008 22:01:08 -0800
changeset 1546 a02228c60567
parent 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
6764892: VS2008 changes required to compile hotspot sources Summary: Minor changes required to build using the Visual Studio 2008 compiler Reviewed-by: kvn, ohair
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * Copyright 2004-2007 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 *  This isn't the test case: ResourceCheckTest.sh is.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
 *  Refer to ResourceCheckTest.sh when running this test.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 *  @bug 5008856 5023573 5024917 5062569
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 *  @summary 'missing resource key' error for key = "Operating system"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
import java.awt.event.KeyEvent;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
import sun.tools.jconsole.Resources;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
public class ResourceCheckTest {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    public static void main(String[] args){
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
        Object [][] testData = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
            {"<", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
            {"<<", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
            {">", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
            {" 1 day", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
            {" 1 hour", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
            {" 1 min", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
            {" 1 month", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
            {" 1 year", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
            {" 2 hours", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
            {" 3 hours", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
            {" 3 months", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
            {" 5 min", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
            {" 6 hours", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
            {" 6 months", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
            {" 7 days", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
            {"10 min", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
            {"12 hours", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
            {"30 min", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
            {"ACTION", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
            {"ACTION_INFO", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
            {"All", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
            {"Architecture", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
            {"Attribute", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
            {"Attribute value", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
            {"Attribute values", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
            {"Attributes", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
            {"Blank", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
            {"BlockedCount WaitedCount", "BlockedCount", "WaitedCount", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
            {"Boot class path", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
            {"BorderedComponent.moreOrLessButton.toolTip", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
            {"Close", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
            {"CPU Usage", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
            {"CPUUsageFormat","PhonyPercentage", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
            {"Cancel", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
            {"Cascade", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
            {"Cascade.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
            {"Chart:", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
            {"Chart:.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
            {"ClassTab.infoLabelFormat", "LoadedCount", "UnloadedCount", "TotalCount", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
            {"ClassTab.loadedClassesPlotter.accessibleName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
            {"Class path", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
            {"Classes", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
            {"ClassName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
            {"Column.Name", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
            {"Column.PID", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
            {"Committed", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
            {"Committed memory", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
            {"Committed virtual memory", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
            {"Compiler", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
            {"Connect...", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
            {"Connect", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
            {"Connect.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
            {"ConnectDialog.connectButton.toolTip", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
            {"ConnectDialog.accessibleDescription", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
            {"ConnectDialog.masthead.accessibleName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
            {"ConnectDialog.masthead.title", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
            {"ConnectDialog.statusBar.accessibleName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
            {"ConnectDialog.title", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
            {"Connected. Click to disconnect.", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
            {"connectingTo1", "PhonyConnectionName", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
            {"connectingTo2", "PhonyConnectionName", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
            {"connectionFailed1", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
            {"connectionFailed2", "PhonyConnectionName", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
            {"connectionLost1", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
            {"connectionLost2", "PhonyConnectionName", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
            {"Connection failed", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
            {"Connection", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
            {"Connection.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
            {"Connection name", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
            {"ConnectionName (disconnected)", "Phony", "Phony", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
            {"Constructor", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
            {"Create", "Phony", "Phony", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
            {"Current classes loaded", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
            {"Current heap size", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
            {"Current value", "PhonyValue", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
            {"Daemon threads", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
            {"deadlockAllTab", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
            {"deadlockTab", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
            {"deadlockTabN", "PhonyInt", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
            {"Description", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
            {"Descriptor", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
            {"Details", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
            {"Detect Deadlock", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
            {"Detect Deadlock.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
            {"Detect Deadlock.toolTip", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
            {"Dimension is not supported:", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
            {"Discard chart", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
            {"Disconnected. Click to connect.", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
            {"Double click to expand/collapse", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
            {"Double click to visualize", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
            {"DurationDaysHoursMinutes", 0, 13, 54, ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
            {"DurationDaysHoursMinutes", 1, 13, 54, ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
            {"DurationDaysHoursMinutes", 2, 13, 54, ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
            {"DurationDaysHoursMinutes", 1024, 13, 45, ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
            {"DurationHoursMinutes", 0, 13, "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
            {"DurationHoursMinutes", 1, 0, "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
            {"DurationHoursMinutes", 1, 1, "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
            {"DurationHoursMinutes", 2, 42, "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
            {"DurationMinutes", 0, "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
            {"DurationMinutes", 1, "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
            {"DurationMinutes", 2, "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
            {"DurationSeconds", 0, "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
            {"DurationSeconds", 1, "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
            {"DurationSeconds", 2, "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
            {"Empty array", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
            {"Error", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
            {"Error: MBeans already exist", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
            {"Error: MBeans do not exist", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
            {"Event", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
            {"Exit", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
            {"Exit.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
            {"expand", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
            {"Fail to load plugin", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
            {"FileChooser.fileExists.cancelOption", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
            {"FileChooser.fileExists.message", "PhonyFileName", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
            {"FileChooser.fileExists.okOption", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
            {"FileChooser.fileExists.title", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
            {"FileChooser.savedFile", "PhonyFilePath", "PhonyFileSize", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
            {"FileChooser.saveFailed.message", "PhonyFilePath", "PhonyMessage", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
            {"FileChooser.saveFailed.title", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
            {"Free physical memory", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
            {"Free swap space", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
            {"Garbage collector", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
            {"GC time", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
            {"GC time details", 54, "Phony", 11, ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
            {"GcInfo", "Phony", -1, 768, ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
            {"GcInfo", "Phony", 0, 768, ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
            {"GcInfo", "Phony", 1, 768, ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
            {"Heap", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
            {"Heap Memory Usage", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
            {"Help.AboutDialog.accessibleDescription", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
            {"Help.AboutDialog.jConsoleVersion", "DummyVersion", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
            {"Help.AboutDialog.javaVersion", "DummyVersion", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
            {"Help.AboutDialog.masthead.accessibleName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
            {"Help.AboutDialog.masthead.title", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
            {"Help.AboutDialog.title", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
            {"Help.AboutDialog.userGuideLink", "DummyMessage", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
            {"Help.AboutDialog.userGuideLink.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
            {"Help.AboutDialog.userGuideLink.url", "DummyURL", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
            {"HelpMenu.About.title", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
            {"HelpMenu.About.title.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
            {"HelpMenu.UserGuide.title", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
            {"HelpMenu.UserGuide.title.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
            {"HelpMenu.title", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
            {"HelpMenu.title.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
            {"Hotspot MBeans...", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
            {"Hotspot MBeans....mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
            {"Hotspot MBeans.dialog.accessibleDescription", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
            {"Impact", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
            {"Info", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
            {"INFO", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
            {"Invalid plugin path", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
            {"Invalid URL", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
            {"Is", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
            {"Java Monitoring & Management Console", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
            {"Java Virtual Machine", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
            {"JConsole: ", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
            {"JConsole.accessibleDescription", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
            {"JConsole version", "PhonyVersion", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
            {"JIT compiler", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
            {"Library path", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
            {"Live Threads", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
            {"Loaded", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
            {"Local Process:", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
            {"Local Process:.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
            {"Manage Hotspot MBeans in: ", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
            {"Management Not Enabled", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
            {"Management Will Be Enabled", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
            {"Masthead.font", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
            {"Max", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
            {"Max", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
            {"Maximum heap size", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
            {"MBeanAttributeInfo", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
            {"MBeanInfo", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
            {"MBeanNotificationInfo", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
            {"MBeanOperationInfo", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
            {"MBeans", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
            {"MBeansTab.clearNotificationsButton", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
            {"MBeansTab.clearNotificationsButton.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
            {"MBeansTab.clearNotificationsButton.toolTip", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
            {"MBeansTab.compositeNavigationMultiple", 0, 0, "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
            {"MBeansTab.compositeNavigationSingle", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
            {"MBeansTab.refreshAttributesButton", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
            {"MBeansTab.refreshAttributesButton.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
            {"MBeansTab.refreshAttributesButton.toolTip", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
            {"MBeansTab.subscribeNotificationsButton", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
            {"MBeansTab.subscribeNotificationsButton.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
            {"MBeansTab.subscribeNotificationsButton.toolTip", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
            {"MBeansTab.tabularNavigationMultiple", 0, 0, "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
            {"MBeansTab.tabularNavigationSingle", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
            {"MBeansTab.unsubscribeNotificationsButton", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
            {"MBeansTab.unsubscribeNotificationsButton.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
            {"MBeansTab.unsubscribeNotificationsButton.toolTip", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
            {"Memory", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
            {"MemoryPoolLabel", "PhonyMemoryPool", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
            {"MemoryTab.heapPlotter.accessibleName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
            {"MemoryTab.infoLabelFormat", "UsedCount", "CommittedCount", "MaxCount", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
            {"MemoryTab.nonHeapPlotter.accessibleName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
            {"MemoryTab.poolChart.aboveThreshold", "Threshold", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
            {"MemoryTab.poolChart.accessibleName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
            {"MemoryTab.poolChart.belowThreshold", "Threshold", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
            {"MemoryTab.poolPlotter.accessibleName", "PhonyMemoryPool", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
            {"Message", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
            {"Method successfully invoked", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
            {"Monitor locked", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
            {"Minimize All", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
            {"Minimize All.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
            {"Name", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
            {"Name and Build", "PhonyName", "PhonyBuild", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
            {"Name Build and Mode", "PhonyName", "PhonyBuild", "PhonyMode", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
            {"Name State", "PhonyName", "PhonyState", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
            {"Name State LockName", "PhonyName", "PhonyState", "PhonyLock", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
            {"Name State LockName LockOwner", "PhonyName", "PhonyState", "PhonyLock", "PhonyOwner"},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
            {"New Connection...", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
            {"New Connection....mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
            {"No deadlock detected", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
            {"Non-Heap", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
            {"Non-Heap Memory Usage", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
            {"Notification", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
            {"Notification buffer", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
            {"Notifications", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
            {"NotifTypes", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
            {"Number of Loaded Classes", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
            {"Number of processors", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
            {"Number of Threads", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
            {"ObjectName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
            {"Operating System", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
            {"Operation", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
            {"Operation invocation", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
            {"Operation return value", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
            {"Operations", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
            {"Overview", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
            {"OverviewPanel.plotter.accessibleName", "PhonyPlotter", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
            {"Parameter", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
            {"Password: ", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
            {"Password: .mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
            {"Password.accessibleName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
            {"Peak", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
            {"Perform GC", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
            {"Perform GC.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
            {"Perform GC.toolTip", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
            {"Plotter.accessibleName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
            {"Plotter.accessibleName.keyAndValue", "Key", "Value", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
            {"Plotter.accessibleName.noData", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
            {"Plotter.saveAsMenuItem", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
            {"Plotter.saveAsMenuItem.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
            {"Plotter.timeRangeMenu", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
            {"Plotter.timeRangeMenu.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
            {"plot", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
            {"Problem adding listener", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
            {"Problem displaying MBean", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
            {"Problem invoking", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
            {"Problem removing listener", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
            {"Problem setting attribute", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
            {"Process CPU time", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
            {"Readable", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
            {"Reconnect", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
            {"Remote Process:", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
            {"Remote Process:.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
            {"Remote Process.textField.accessibleName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
            {"remoteTF.usage", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
            {"Restore All", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
            {"Restore All.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
            {"ReturnType", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
            {"SeqNum", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
            {"Size Bytes", 512, "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
            {"Size Gb", 512, "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
            {"Size Kb", 512, "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
            {"Size Mb", 512, "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
            {"Source", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
            {"Stack trace", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
            {"SummaryTab.headerDateTimeFormat", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
            {"SummaryTab.pendingFinalization.label", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
            {"SummaryTab.pendingFinalization.value", "ObjectCount", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
            {"SummaryTab.tabName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
            {"SummaryTab.vmVersion",  "VMName", "VMVersion", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
            {"ThreadTab.infoLabelFormat", "LiveCount", "PeakCount", "TotalCount", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
            {"ThreadTab.threadInfo.accessibleName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
            {"ThreadTab.threadPlotter.accessibleName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
            {"Threads", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
            {"Threshold", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
            {"Tile", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
            {"Tile.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
            {"Time", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
            {"Time Range:", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
            {"Time Range:.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
            {"TimeStamp", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
            {"Total classes loaded", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
            {"Total classes unloaded", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
            {"Total compile time", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
            {"Total Loaded", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
            {"Total physical memory", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
            {"Total swap space", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
            {"Total threads started", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
            {"Type", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
            {"Unavailable", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
            {"UNKNOWN", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
            {"Unregister", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
            {"Uptime", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
            {"Usage Threshold", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
            {"Used", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
            {"Username: ", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
            {"Username: .mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
            {"Username.accessibleName", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
            {"UserData", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
            {"Value", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
            {"Vendor", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
            {"Verbose Output", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
            {"Verbose Output.toolTip", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
            {"visualize", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
            {"VM", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
            {"VMInternalFrame.accessibleDescription", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
            {"VM arguments", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
            {"Virtual Machine", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
            {"Window", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
            {"Window.mnemonic", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
            {"Writable", "", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
            {"zz usage text", "PhonyName", "", "", ""},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
        //boolean verbose = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
        boolean verbose = true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
        long badLookups = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
        System.out.println("Start...");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
        for (int ii = 0; ii < testData.length; ii++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
            String key = (String)testData[ii][0];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
            if (key.endsWith(".mnemonic")) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
                String baseKey = key.substring(0, key.length() - ".mnemonic".length());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
                int mnemonic = Resources.getMnemonicInt(baseKey);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
                if (mnemonic == 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
                    badLookups++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
                    System.out.println("****lookup failed for key = " + key);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
                } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
                    if (verbose) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
                        System.out.println("    mnemonic: " + KeyEvent.getKeyText(mnemonic));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
                continue;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
            String ss = Resources.getText(key,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
                                          testData[ii][1],
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
                                          testData[ii][2],
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
                                          testData[ii][3],
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
                                          testData[ii][4]);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
            if (ss.startsWith("missing resource key")) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
                badLookups++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
                System.out.println("****lookup failed for key = " + key);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
            } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
                if (verbose) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
                    System.out.println("  " + ss);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
        if (badLookups > 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
            throw new Error ("Resource lookup failed " + badLookups +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
                             " time(s); Test failed");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
        System.out.println("...Finished.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
}