This is an automated email from the ASF dual-hosted git repository.

shoothzj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new a266c92aca Add powermock global configuration (#3467)
a266c92aca is described below

commit a266c92acadf7054667db4974bb84439c4d78475
Author: Lishen Yao <[email protected]>
AuthorDate: Mon Sep 5 09:38:09 2022 +0800

    Add powermock global configuration (#3467)
    
    ### Motivation
    
    Fix https://github.com/apache/bookkeeper/issues/3115
    
    When I try to run some test classes, there will occur an error message like 
the above issue cause `javax/management/MBeanServer` is a system class and 
javassist's classloader cannot load it. we can add powermock global 
configuration to ignore this error message.
    
    The powermock's instruction is here: 
https://github.com/powermock/powermock/wiki/PowerMock-Configuration
    
    ### Changes
    
    Add `org/powermock/extensions/configuration.properties`.
---
 .../powermock/extensions/configuration.properties  | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git 
a/bookkeeper-server/src/test/resources/org/powermock/extensions/configuration.properties
 
b/bookkeeper-server/src/test/resources/org/powermock/extensions/configuration.properties
new file mode 100644
index 0000000000..e58a6058e5
--- /dev/null
+++ 
b/bookkeeper-server/src/test/resources/org/powermock/extensions/configuration.properties
@@ -0,0 +1,22 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+
+powermock.global-ignore=javax.management.*

Reply via email to