gcc/libjava/classpath/testsuite/java.util/ResourceBundleTest.java
Tom Tromey f911ba985a Initial revision
From-SVN: r102074
2005-07-16 00:30:23 +00:00

21 lines
500 B
Java

import java.util.*;
public class ResourceBundleTest
{
public static void main(String args[])
{
try {
ResourceBundle messageRB =
ResourceBundle.getBundle("sun.tools.javac.resources.javac");
String bundle = (String)messageRB.getObject("main.usage");
if (null == bundle)
throw new Exception("javac.main.usage resource is null");
System.out.println("PASSED: Resource javac.main.usage existed");
} catch (Exception e) {
System.out.println("FAILED: " + e);
}
}
}