< prev index next >

test/jdk/java/text/Format/NumberFormat/Bug4838107.java

Print this page
@@ -1,7 +1,7 @@
  /*
-  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
+  * Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

@@ -23,19 +23,22 @@
  
  /*
   * @test
   * @bug 4838107 8008577
   * @summary Confirm that DecimalFormat can format a number with negative exponent number correctly.
-  * @library /java/text/testlib
-  * @run main/othervm -Djava.locale.providers=COMPAT,SPI Bug4838107
+  * @run junit/othervm -Djava.locale.providers=COMPAT,SPI Bug4838107
   */
  
  import java.math.*;
  import java.util.*;
  import java.text.*;
  
- public class Bug4838107 extends IntlTest {
+ import org.junit.jupiter.api.Test;
+ 
+ import static org.junit.jupiter.api.Assertions.fail;
+ 
+ public class Bug4838107 {
  
      static DecimalFormat df;
      static DecimalFormatSymbols dfs;
      static boolean err = false;
  
< prev index next >