/**\r
- * Copyright 2017 ZTE Corporation.\r
- *\r
+ * Copyright 2017-2020 ZTE Corporation.\r
+ * <p>\r
* Licensed under the Apache License, Version 2.0 (the "License");\r
* you may not use this file except in compliance with the License.\r
* You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
+ * <p>\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * <p>\r
* Unless required by applicable law or agreed to in writing, software\r
* distributed under the License is distributed on an "AS IS" BASIS,\r
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
import org.apache.commons.lang3.StringUtils;\r
import org.easymock.EasyMock;\r
import org.junit.Ignore;\r
-import org.junit.Rule;\r
import org.junit.Test;\r
+import org.junit.runner.RunWith;\r
import org.powermock.api.easymock.PowerMock;\r
import org.powermock.core.classloader.annotations.PowerMockIgnore;\r
import org.powermock.core.classloader.annotations.PrepareForTest;\r
-import org.powermock.modules.junit4.rule.PowerMockRule;\r
+import org.powermock.modules.junit4.PowerMockRunner;\r
import org.powermock.reflect.internal.WhiteboxImpl;\r
\r
import static org.hamcrest.core.Is.is;\r
\r
@PrepareForTest(MicroServiceConfig.class)\r
@PowerMockIgnore({"javax.ws.*"})\r
+@RunWith(PowerMockRunner.class)\r
public class MicroServiceConfigTest {\r
\r
private static String ACTUAL_HOSTNAME = System.getenv(HOSTNAME);\r
\r
- @Rule\r
- public PowerMockRule powerMockRule = new PowerMockRule();\r
\r
@Test\r
public void getMsbServerAddrTest() {\r