<commit_before>/*
 * DownloadClient Geodateninfrastruktur Bayern
 *
 * (c) 2016 GSt. GDI-BY (gdi.bayern.de)
 *
 * 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 de.bayern.gdi;

import de.bayern.gdi.model.DownloadStep;
import de.bayern.gdi.utils.DownloadConfiguration;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;
import org.junit.Before;
import org.junit.Test;

/**
 * @author thomas
 */
public class IntegrationTest extends TestBase {

    /**
     * Number of steps.
     */
    private static final int TWO_ELEMENTS = 2;

    /**
     * Total number of services.
     */
    private static final int TOTAL_NUMBER_OF_SERVICES = 13;


    /**
     * Biergarten text.
     */
    private static final String BIERGARTEN = "Biergarten";
    /**
     * Biergarten URL.
     */
    private static final String BIERGARTEN_URL =
        "https://geoportal.bayern.de/gdiadmin/ausgabe/ATOM_SERVICE/"
            + "a90c75a0-f1b5-46e7-9e45-c0385fd0c200";

    /**
     * Verwaltungsgrenzen.
     */
    private static final String VERWALTUNGSGRENZEN = "Verwaltungsgrenzen";

    /**
     * Verwaltungsgrenzen_URL.
     */
    private static final String VERWALTUNGSGRENZEN_URL =
        "http://geoserv.weichand.de:8080/geoserver/wfs?service="
            + "wfs&acceptversions=2.0.0"
            + "&request=GetCapabilities";
    /**
     * Downloadconfigurator.
     */
    private static final DownloadConfiguration DOWNLOAD_CONFIGURATION =
        new DownloadConfiguration();
    /**
     * WFS.
     */
    private static final String WFS = "WFS";
    /**
     * Auth.
     */
    public static final String AUTH =
        "#serviceAuthenticationCbx";

    /**
     * FlurStuecke.
     */
    private static final String FLUR_STUECKE =
        "Flurstücke und Gebäude Bayern - "
            + "Web Feature Service - Passwortgeschüzt";

    /**
     * Before waitFor for Ready state.
     *
     * @throws Exception just in case
     */
    @Before
    public void applicationReady() throws Exception {
        waitUntilReady();
    }

    /**
     * Tests the initial state of the application.
     *<commit_msg>A shot into the dark to maybe fix the build.<commit_after>/*
 * DownloadClient Geodateninfrastruktur Bayern
 *
 * (c) 2016 GSt. GDI-BY (gdi.bayern.de)
 *
 * 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 de.bayern.gdi;

import de.bayern.gdi.model.DownloadStep;
import de.bayern.gdi.utils.DownloadConfiguration;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;
import org.junit.Before;
import org.junit.Test;

/**
 * @author thomas
 */
public class IntegrationTest extends TestBase {

    /**
     * Number of steps.
     */
    private static final int TWO_ELEMENTS = 2;

    /**
     * Total number of services.
     */
    private static final int TOTAL_NUMBER_OF_SERVICES = 13;


    /**
     * Biergarten text.
     */
    private static final String BIERGARTEN = "Biergarten";
    /**
     * Biergarten URL.
     */
    private static final String BIERGARTEN_URL =
        "https://geoportal.bayern.de/gdiadmin/ausgabe/ATOM_SERVICE/"
            + "a90c75a0-f1b5-46e7-9e45-c0385fd0c200";

    /**
     * Verwaltungsgrenzen.
     */
    private static final String VERWALTUNGSGRENZEN = "Verwaltungsgrenzen";

    /**
     * Verwaltungsgrenzen_URL.
     */
    private static final String VERWALTUNGSGRENZEN_URL =
        "http://geoserv.weichand.de:8080/geoserver/wfs?service="
            + "wfs&acceptversions=2.0.0"
            + "&request=GetCapabilities";
    /**
     * Downloadconfigurator.
     */
    private static final DownloadConfiguration DOWNLOAD_CONFIGURATION =
        new DownloadConfiguration();
    /**
     * WFS.
     */
    private static final String WFS = "WFS";
    /**
     * Auth.
     */
    public static final String AUTH =
        "#serviceAuthenticationCbx";

    /**
     * FlurStuecke.
     */
    private static final String FLUR_STUECKE =
        "Flurst\u00fccke und Geb\u00e4ude Bayern - "
            + "Web Feature Service - Passwortgesch\u00fczt";

    /**
     * Before waitFor for Ready state.
     *
     * @throws Exception just in case
     */
    @Before
    public void applicationReady() throws Exception {
        waitUntilReady();
    }

    /**
     * Tests the initial state of the application.
     *
{'fraction_non_alphanumeric': 0.09993011879804332, 'fraction_numerical': 0.01484975541579315, 'mean_word_length': 2.6280101394169835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6980058', 'n_tokens_mistral': 1824, 'n_tokens_neox': 1740, 'n_words': 477}