@@ -0,0 +1,1977 @@
+package org.pdxfinder.services;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.pdxfinder.BaseTest;%0Aimport org.pdxfinder.graph.repositories.MolecularCharacterizationRepository;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.InputStreamReader;%0Aimport java.net.URL;%0Aimport java.net.URLConnection;%0Aimport java.util.List;%0A%0A/*%0A * Created by csaba on 18/03/2019.%0A */%0Apublic class MolcharTableTest extends BaseTest%7B%0A%0A%0A    private final static Logger log = LoggerFactory.getLogger(MolcharTableTest.class);%0A%0A    @Autowired%0A    private MolecularCharacterizationRepository molecularCharacterizationRepository;%0A%0A    List%3CLong%3E molcharNodeIds;%0A%0A    @Before%0A    public void setUp()%7B%0A        //log.info(%22Getting molchar node ids%22);%0A        //molcharNodeIds = molecularCharacterizationRepository.getAllMolCharIDs();%0A%0A        //log.info(%22Found %22+molcharNodeIds.size()+ %22 molchar nodes%22);%0A    %7D%0A%0A%0A%0A    @Test%0A    public void visitAllMolcharUrls()%7B%0A%0A/*%0A%0A        for(Long id: molcharNodeIds)%7B%0A%0A        %7D%0A%0A        try%7B%0A%0A            String url = %22/getmoleculardata/%22+molcharNodeIds.get(0);%0A            log.info(%22Getting data from: %22+url);%0A            String response = getText(url);%0A%0A            System.out.println(response);%0A%0A        %7D%0A        catch (Exception e)%7B%0A            e.printStackTrace();%0A        %7D%0A%0A%0A%0A*/%0A    %7D%0A%0A%0A    public static String getText(String url) throws Exception %7B%0A        URL website = new URL(url);%0A        URLConnection connection = website.openConnection();%0A        BufferedReader in = new BufferedReader(%0A                new InputStreamReader(%0A                        connection.getInputStream()));%0A%0A        StringBuilder response = new StringBuilder();%0A        String inputLine;%0A%0A        while ((inputLine = in.readLine()) != null)%0A            response.append(inputLine);%0A%0A        in.close();%0A%0A        return response.toString();%0A%0A    %7D%0A%0A%7D%0A

Add test