< prev index next >

test/java/lang/Enum/ValueOf.java

Print this page




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug     4984908 5058132 6653154
  27  * @summary Basic test of valueOf(String)
  28  * @author  Josh Bloch
  29  *
  30  * @compile ValueOf.java
  31  * @run main ValueOf

  32  */
  33 
  34 import java.util.*;
  35 import java.lang.reflect.Method;
  36 
  37 public class ValueOf {
  38     static Random rnd = new Random();
  39 
  40     public static void main(String[] args) throws Exception {
  41         test(Silly0.class);
  42         test(Silly1.class);
  43         test(Silly31.class);
  44         test(Silly32.class);
  45         test(Silly33.class);
  46         test(Silly63.class);
  47         test(Silly64.class);
  48         test(Silly65.class);
  49         test(Silly127.class);
  50         test(Silly128.class);
  51         test(Silly129.class);




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug     4984908 5058132 6653154
  27  * @summary Basic test of valueOf(String)
  28  * @author  Josh Bloch
  29  *
  30  * @compile ValueOf.java
  31  * @run main ValueOf
  32  * @key randomness
  33  */
  34 
  35 import java.util.*;
  36 import java.lang.reflect.Method;
  37 
  38 public class ValueOf {
  39     static Random rnd = new Random();
  40 
  41     public static void main(String[] args) throws Exception {
  42         test(Silly0.class);
  43         test(Silly1.class);
  44         test(Silly31.class);
  45         test(Silly32.class);
  46         test(Silly33.class);
  47         test(Silly63.class);
  48         test(Silly64.class);
  49         test(Silly65.class);
  50         test(Silly127.class);
  51         test(Silly128.class);
  52         test(Silly129.class);


< prev index next >