test/jdk/jdk/jfr/api/consumer/TestRecordingInternals.java
changeset 58863 c16ac7a2eba4
parent 51214 67736b4846a0
equal deleted inserted replaced
58861:2c3cc4b01880 58863:c16ac7a2eba4
     1 /*
     1 /*
     2  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    58                 RecordedThread rt = e.getThread();
    58                 RecordedThread rt = e.getThread();
    59                 Asserts.assertEquals(id.toString(), rt.getJavaName(), "Thread name should match id");
    59                 Asserts.assertEquals(id.toString(), rt.getJavaName(), "Thread name should match id");
    60                 Asserts.assertEquals(id.toString(), rt.getThreadGroup().getName(), "Thread group name should match id");
    60                 Asserts.assertEquals(id.toString(), rt.getThreadGroup().getName(), "Thread group name should match id");
    61                 Asserts.assertEquals(id, Integer.valueOf(i), "Chunks out of order");
    61                 Asserts.assertEquals(id, Integer.valueOf(i), "Chunks out of order");
    62                 i++;
    62                 i++;
       
    63                 System.out.println(i + " OK ");
    63             }
    64             }
    64         }
    65         }
    65     }
    66     }
    66 
    67 
    67     private static void createProfilingRecording(int id) throws InterruptedException {
    68     private static void createProfilingRecording(int id) throws InterruptedException {