<commit_before>/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * 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 com.liferay.blade.extensions.maven.profile;

import com.liferay.blade.cli.BladeTest;
import com.liferay.blade.cli.TestUtil;
import com.liferay.blade.cli.command.JavaProcess;
import com.liferay.blade.cli.command.JavaProcesses;
import com.liferay.blade.cli.util.BladeUtil;

import java.io.File;
import java.io.IOException;

import java.net.InetAddress;
import java.net.Socket;

import java.nio.file.Files;
import java.nio.file.Path;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.function.Predicate;
import java.util.stream.Stream;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;

import org.zeroturnaround.process.PidProcess;
import org.zeroturnaround.process.ProcessUtil;
import org.zeroturnaround.process.Processes;

/**
 * @author <NAME>
 * @author Gregory Amerson
 */
public class ServerStartCommandMavenTest {

	@Before
	public void setUp() throws Exception {
		File testWorkspaceFile = temporaryFolder.newFolder("testWorkspaceDir");

		_testWorkspaceDir = testWorkspaceFile.toPath();

		File extensionsFile = temporaryFolder.newFolder(".blade", "extensions");

		_extensionsDir = extensionsFile.toPath();
	}

	@Test
	public void testServerRunCommandTomcat() throws Exception {
		_initBladeWorkspace();

		_verifyMavenFiles();

		_initServerBundle();

		_verifyTomcatBundlePath();<commit_msg>Ignore maven server start command<commit_after>/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * 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 com.liferay.blade.extensions.maven.profile;

import com.liferay.blade.cli.BladeTest;
import com.liferay.blade.cli.TestUtil;
import com.liferay.blade.cli.command.JavaProcess;
import com.liferay.blade.cli.command.JavaProcesses;
import com.liferay.blade.cli.util.BladeUtil;

import java.io.File;
import java.io.IOException;

import java.net.InetAddress;
import java.net.Socket;

import java.nio.file.Files;
import java.nio.file.Path;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.function.Predicate;
import java.util.stream.Stream;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;

import org.zeroturnaround.process.PidProcess;
import org.zeroturnaround.process.ProcessUtil;
import org.zeroturnaround.process.Processes;

/**
 * @author <NAME>
 * @author <NAME>
 */
@Ignore
public class ServerStartCommandMavenTest {

	@Before
	public void setUp() throws Exception {
		File testWorkspaceFile = temporaryFolder.newFolder("testWorkspaceDir");

		_testWorkspaceDir = testWorkspaceFile.toPath();

		File extensionsFile = temporaryFolder.newFolder(".blade", "extensions");

		_extensionsDir = extensionsFile.toPath();
	}

	@Test
	public void testServerRunCommandTomcat() throws Exception {
		_initBladeWorkspace();

		_verifyMavenFiles();

		_initServerBundle();

		_verifyTomcatBundlePath();
{'fraction_non_alphanumeric': 0.10104529616724739, 'fraction_numerical': 0.003484320557491289, 'mean_word_length': 5.019659239842726, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2411158', 'n_tokens_mistral': 1375, 'n_tokens_neox': 1366, 'n_words': 369}