< prev index next >

test/jdk/jdk/jfr/api/metadata/eventtype/TestGetDefaultValues.java

Print this page
rev 51054 : imported patch 9000013-aixDisableJFR-requires.patch


  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.jfr.api.metadata.eventtype;
  27 
  28 import jdk.jfr.Event;
  29 import jdk.jfr.EventType;
  30 import jdk.jfr.FlightRecorder;
  31 import jdk.test.lib.Asserts;
  32 import jdk.test.lib.jfr.Events;
  33 
  34 /*
  35  * @test
  36  * @summary Test getDefaultValues()
  37  * @key jfr

  38  * @library /test/lib /test/jdk
  39  * @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetDefaultValues
  40  */
  41 public class TestGetDefaultValues {
  42 
  43     private static class DefaultEvent extends Event {
  44     }
  45 
  46     public static void main(String[] args) throws Throwable {
  47         testDefaultEvent();
  48         testCustomEvent();
  49         testCustomWithPeriod();
  50     }
  51 
  52     private static void testCustomWithPeriod() {
  53         Runnable hook = new Runnable() {
  54             @Override
  55             public void run() {
  56             }
  57         };




  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.jfr.api.metadata.eventtype;
  27 
  28 import jdk.jfr.Event;
  29 import jdk.jfr.EventType;
  30 import jdk.jfr.FlightRecorder;
  31 import jdk.test.lib.Asserts;
  32 import jdk.test.lib.jfr.Events;
  33 
  34 /**
  35  * @test
  36  * @summary Test getDefaultValues()
  37  * @key jfr
  38  * @requires vm.hasJFR
  39  * @library /test/lib /test/jdk
  40  * @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetDefaultValues
  41  */
  42 public class TestGetDefaultValues {
  43 
  44     private static class DefaultEvent extends Event {
  45     }
  46 
  47     public static void main(String[] args) throws Throwable {
  48         testDefaultEvent();
  49         testCustomEvent();
  50         testCustomWithPeriod();
  51     }
  52 
  53     private static void testCustomWithPeriod() {
  54         Runnable hook = new Runnable() {
  55             @Override
  56             public void run() {
  57             }
  58         };


< prev index next >