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

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


The following commit(s) were added to refs/heads/master by this push:
     new 3afa246  cxf-systests-ws-security: fix compilation error
3afa246 is described below

commit 3afa24650ef1988c8464b5a48853a6f75ff794f9
Author: Alexey Markevich <buhhu...@gmail.com>
AuthorDate: Fri Mar 12 15:07:30 2021 +0300

    cxf-systests-ws-security: fix compilation error
---
 .../apache/cxf/systest/ws/policy/JavaFirstPolicyServer.java  | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git 
a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/policy/JavaFirstPolicyServer.java
 
b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/policy/JavaFirstPolicyServer.java
index 831a7f1..d6073b2 100644
--- 
a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/policy/JavaFirstPolicyServer.java
+++ 
b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/policy/JavaFirstPolicyServer.java
@@ -33,25 +33,15 @@ public class JavaFirstPolicyServer extends 
AbstractBusTestServerBase {
     public static final String PORT2 = 
allocatePort(JavaFirstPolicyServer.class, 2);
     public static final String PORT3 = 
allocatePort(JavaFirstPolicyServer.class, 3);
 
-    public JavaFirstPolicyServer() {
-
-    }
-
     protected void run()  {
         URL busFile = 
JavaFirstPolicyServer.class.getResource("javafirstserver.xml");
         Bus busLocal = new SpringBusFactory().createBus(busFile);
         BusFactory.setDefaultBus(busLocal);
         Assert.assertNotNull(busLocal);
         setBus(busLocal);
-
-        try {
-            new JavaFirstPolicyServer();
-        } catch (Exception e) {
-            e.printStackTrace();
-        }
     }
 
-    public static void main(String[] args) {
+    public static void main(String[] args) throws Exception {
         new JavaFirstPolicyServer().start();
     }
 }

Reply via email to