// BridgeDb,
// An abstraction layer for identifier mapping services, both local and online.
//
// Copyright 2006-2009  BridgeDb developers
// Copyright 2012-2013  Christian Y. A. Brenninkmeijer
// Copyright 2012-2013  OpenPhacts
//
// Licensed 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.
//
package org.bridgedb.uri.ws.client;

import javax.ws.rs.core.Response;
import org.bridgedb.IDMapperException;
import org.bridgedb.uri.ws.WSUriInterface;
import org.bridgedb.utils.BridgeDBException;
import org.bridgedb.ws.bean.MappingSupportedBean;

/**
 *
 * @author Christian
 */
public class WsUriClientFactory extends org.bridgedb.utils.IDMapperTestBase{
    
    public static boolean LENS_DATA_LOADED = false;
    
    public static WSUriInterface createTestWSClient() throws BridgeDBException{
        try {
            setupXref();
        } catch (IDMapperException e){
            throw BridgeDBException.convertToBridgeDB(e);
        }
        //ystem.out.println("in WSCoreInterface 1");
        WSUriInterface webService;
        webService = new WSUriClient("http://localhost:8080/BridgeDb");
        //ystem.out.println("in WSCoreInterface 2");
        try { 
            webService.isFreeSearchSupported();
            //ystem.out.println("in WSCoreInterface 3");
        } catch (Exception ex) {
            System.err.println(ex);
            System.err.println ("***** SKIPPING WSClientTest ******");
            System.err.println ("Please make sure the server is running");
            org.junit.Assume.assumeTrue(false);        
        }
        boolean ok;
        try{
            Response response = webService.isMappingSupported(DataSource1.getSystemCode(), DataSource2.getSystemCode());
            MappingSupportedBean bean = (MappingSupportedBean)response.getEntity();
            ok = bean.isMappingSupported();
        } catch (Exception ex){
            ex.printStackTrace();
            ok = false;
        }
        if (!ok){
       //ystem.out.println("in WSCoreInterface 5a");
            System.err.println ("***** SKIPPING WSClientTest ******");
            System.err.println ("It appears the Test data is not loaded");
            System.err.println ("remove ignore in TestDataToMainServerTest (org.bridgedb.ws.sqlserver) ");            
            org.junit.Assume.assumeTrue(false);        
        }
        //ystem.out.println("in WSCoreInterface 5b");
        return webService;
    }
    
}

@@ -1,10 +1,10 @@
 /
-/
+*
  BridgeD
@@ -6,18 +6,18 @@
 idgeDb,%0A
-//
+ *
  An abst
@@ -86,21 +86,21 @@
 online.%0A
-//%0A//
+ *%0A *
  Copyrig
@@ -133,18 +133,18 @@
 elopers%0A
-//
+ *
  Copyrig
@@ -188,18 +188,18 @@
 kmeijer%0A
-//
+ *
  Copyrig
@@ -223,21 +223,21 @@
 nPhacts%0A
-//%0A//
+ *%0A *
  License
@@ -293,18 +293,18 @@
 ense%22);%0A
-//
+ *
  you may
@@ -361,18 +361,18 @@
 icense.%0A
-//
+ *
  You may
@@ -404,21 +404,21 @@
 ense at%0A
-//%0A//
+ *%0A *
  http://
@@ -457,13 +457,13 @@
 2.0%0A
-//%0A//
+ *%0A *
  Unl
@@ -527,18 +527,18 @@
 oftware%0A
-//
+ *
  distrib
@@ -596,18 +596,18 @@
  BASIS,%0A
-//
+ *
  WITHOUT
@@ -672,18 +672,18 @@
 mplied.%0A
-//
+ *
  See the
@@ -743,18 +743,18 @@
 ons and%0A
-//
+ *
  limitat
@@ -777,18 +777,20 @@
 icense.%0A
-//
+ */%0A
 %0Apackage

Update WsUriClientFactory.java