Bael 6556 2 (#4365)

* Added parent module on poms that have no parent defined

* Removed dependency reduced pom from undertow module

* [BAEL-6556] - Next set of testcase renamed
This commit is contained in:
Amit Pandey 2018-05-30 01:44:19 +05:30 committed by Grzegorz Piwowarek
parent 8713e26b6f
commit dfcc0cab05
39 changed files with 41 additions and 41 deletions

View File

@ -19,7 +19,7 @@ import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.tuple; import static org.assertj.core.api.Assertions.tuple;
import org.junit.Test; import org.junit.Test;
public class LanguageDetectorAndTrainingDataTest { public class LanguageDetectorAndTrainingDataUnitTest {
@Test @Test
public void givenLanguageDictionary_whenLanguageDetect_thenLanguageIsDetected() throws FileNotFoundException, IOException { public void givenLanguageDictionary_whenLanguageDetect_thenLanguageIsDetected() throws FileNotFoundException, IOException {

View File

@ -8,7 +8,7 @@ import opennlp.tools.tokenize.SimpleTokenizer;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test; import org.junit.Test;
public class LemmetizerTest { public class LemmetizerUnitTest {
@Test @Test
public void givenEnglishDictionary_whenLemmatize_thenLemmasAreDetected() throws Exception { public void givenEnglishDictionary_whenLemmatize_thenLemmasAreDetected() throws Exception {

View File

@ -11,7 +11,7 @@ import opennlp.tools.util.Span;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test; import org.junit.Test;
public class NamedEntityRecognitionTest { public class NamedEntityRecognitionUnitTest {
@Test @Test
public void givenEnglishPersonModel_whenNER_thenPersonsAreDetected() throws Exception { public void givenEnglishPersonModel_whenNER_thenPersonsAreDetected() throws Exception {

View File

@ -7,7 +7,7 @@ import opennlp.tools.tokenize.SimpleTokenizer;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test; import org.junit.Test;
public class POSTaggerTest { public class POSTaggerUnitTest {
@Test @Test
public void givenPOSModel_whenPOSTagging_thenPOSAreDetected() throws Exception { public void givenPOSModel_whenPOSTagging_thenPOSAreDetected() throws Exception {

View File

@ -6,7 +6,7 @@ import opennlp.tools.sentdetect.SentenceModel;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test; import org.junit.Test;
public class SentenceDetectionTest { public class SentenceDetectionUnitTest {
@Test @Test
public void givenEnglishModel_whenDetect_thenSentencesAreDetected() throws Exception { public void givenEnglishModel_whenDetect_thenSentencesAreDetected() throws Exception {

View File

@ -9,7 +9,7 @@ import org.junit.Test;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
public class AppTest { public class AppUnitTest {
@Rule @Rule
public BQTestFactory bqTestFactory = new BQTestFactory(); public BQTestFactory bqTestFactory = new BQTestFactory();

View File

@ -9,7 +9,7 @@ import org.junit.Test;
import com.baeldung.counter.CounterUtil.MutableInteger; import com.baeldung.counter.CounterUtil.MutableInteger;
public class CounterTest { public class CounterUnitTest {
@Test @Test
public void whenMapWithWrapperAsCounter_runsSuccessfully() { public void whenMapWithWrapperAsCounter_runsSuccessfully() {

View File

@ -7,7 +7,7 @@ import java.util.List;
import org.junit.Test; import org.junit.Test;
public class FindACustomerInGivenListTest { public class FindACustomerInGivenListUnitTest {
private static List<Customer> customers = new ArrayList<>(); private static List<Customer> customers = new ArrayList<>();

View File

@ -16,7 +16,7 @@ import org.junit.Test;
* @author Santosh Thakur * @author Santosh Thakur
*/ */
public class IteratorsTest { public class IteratorsUnitTest {
@Test @Test
public void whenFailFast_ThenThrowsException() { public void whenFailFast_ThenThrowsException() {

View File

@ -8,11 +8,11 @@ import static org.junit.Assert.*;
import com.baeldung.optional.OrElseAndOrElseGet; import com.baeldung.optional.OrElseAndOrElseGet;
public class OrElseAndOrElseGetTest { public class OrElseAndOrElseGetUnitTest {
private OrElseAndOrElseGet orElsevsOrElseGet = new OrElseAndOrElseGet(); private OrElseAndOrElseGet orElsevsOrElseGet = new OrElseAndOrElseGet();
private static final Logger LOG = LoggerFactory.getLogger(OrElseAndOrElseGetTest.class); private static final Logger LOG = LoggerFactory.getLogger(OrElseAndOrElseGetUnitTest.class);
@Test @Test
public void givenNonEmptyOptional_whenOrElseUsed_thenGivenStringReturned() { public void givenNonEmptyOptional_whenOrElseUsed_thenGivenStringReturned() {

View File

@ -7,7 +7,7 @@ import java.util.List;
import org.junit.Test; import org.junit.Test;
import static org.junit.Assert.*; import static org.junit.Assert.*;
public class PrimeGeneratorTest { public class PrimeGeneratorUnitTest {
@Test @Test
public void whenBruteForced_returnsSuccessfully() { public void whenBruteForced_returnsSuccessfully() {
final List<Integer> primeNumbers = primeNumbersBruteForce(20); final List<Integer> primeNumbers = primeNumbersBruteForce(20);

View File

@ -9,7 +9,7 @@ import static org.assertj.core.api.Assertions.*;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
public class ExecutorTest { public class ExecutorUnitTest {
Article article; Article article;
Stream<Author> stream; Stream<Author> stream;
Spliterator<Author> spliterator; Spliterator<Author> spliterator;

View File

@ -7,7 +7,7 @@ import java.util.List;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
public class StreamApiTest { public class StreamApiUnitTest {
@Test @Test
public void givenList_whenGetLastElementUsingReduce_thenReturnLastElement() { public void givenList_whenGetLastElementUsingReduce_thenReturnLastElement() {

View File

@ -16,7 +16,7 @@ import org.junit.Test;
import com.baeldung.stream.mycollectors.MyImmutableListCollector; import com.baeldung.stream.mycollectors.MyImmutableListCollector;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
public class StreamToImmutableTest { public class StreamToImmutableUnitTest {
@Test @Test
public void whenUsingCollectingToImmutableSet_thenSuccess() { public void whenUsingCollectingToImmutableSet_thenSuccess() {

View File

@ -8,7 +8,7 @@ import java.util.stream.Stream;
import org.junit.Test; import org.junit.Test;
public class SupplierStreamTest { public class SupplierStreamUnitTest {
@Test(expected = IllegalStateException.class) @Test(expected = IllegalStateException.class)
public void givenStream_whenStreamUsedTwice_thenThrowException() { public void givenStream_whenStreamUsedTwice_thenThrowException() {

View File

@ -9,7 +9,7 @@ import java.time.temporal.TemporalAdjuster;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
public class CustomTemporalAdjusterTest { public class CustomTemporalAdjusterUnitTest {
private static final TemporalAdjuster NEXT_WORKING_DAY = new CustomTemporalAdjuster(); private static final TemporalAdjuster NEXT_WORKING_DAY = new CustomTemporalAdjuster();

View File

@ -7,7 +7,7 @@ import java.time.temporal.TemporalAdjusters;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
public class TemporalAdjustersTest { public class TemporalAdjustersUnitTest {
@Test @Test
public void whenAdjust_thenNextSunday() { public void whenAdjust_thenNextSunday() {

View File

@ -8,7 +8,7 @@ import java.util.List;
import static org.junit.Assert.*; import static org.junit.Assert.*;
public class ArrayConvertToListTest { public class ArrayConvertToListUnitTest {
@Test @Test
public void givenAnStringArray_whenConvertArrayToList_thenListCreated() { public void givenAnStringArray_whenConvertArrayToList_thenListCreated() {

View File

@ -6,7 +6,7 @@ import java.util.Deque;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import org.junit.Test; import org.junit.Test;
public class ArrayDequeTest { public class ArrayDequeUnitTest {
@Test @Test
public void whenOffer_addsAtLast() { public void whenOffer_addsAtLast() {

View File

@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
class IterableSizeTest { class IterableSizeUnitTest {
private final List<String> list = Lists.newArrayList("Apple", "Orange", "Banana"); private final List<String> list = Lists.newArrayList("Apple", "Orange", "Banana");

View File

@ -23,8 +23,8 @@ import com.google.common.collect.LinkedHashMultimap;
import com.google.common.collect.Multimap; import com.google.common.collect.Multimap;
import com.google.common.collect.TreeMultimap; import com.google.common.collect.TreeMultimap;
public class MapMultipleValuesTest { public class MapMultipleValuesUnitTest {
private static final Logger LOG = LoggerFactory.getLogger(MapMultipleValuesTest.class); private static final Logger LOG = LoggerFactory.getLogger(MapMultipleValuesUnitTest.class);
@Test @Test
public void givenHashMap_whenPuttingTwice_thenReturningFirstValue() { public void givenHashMap_whenPuttingTwice_thenReturningFirstValue() {

View File

@ -9,7 +9,7 @@ import java.util.stream.IntStream;
import org.junit.Test; import org.junit.Test;
public class ThreadSafeCounterTest { public class ThreadSafeCounterIntegrationTest {
@Test @Test
public void givenMultiThread_whenSafeCounterWithLockIncrement() throws InterruptedException { public void givenMultiThread_whenSafeCounterWithLockIncrement() throws InterruptedException {

View File

@ -6,7 +6,7 @@ import static org.junit.Assert.assertTrue;
import org.junit.Ignore; import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
public class DaemonThreadTest { public class DaemonThreadUnitTest {
@Test @Test
@Ignore @Ignore

View File

@ -9,7 +9,7 @@ import java.util.stream.IntStream;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
public class BaeldungSychronizedBlockTest { public class BaeldungSychronizedBlockUnitTest {
@Test @Test
public void givenMultiThread_whenBlockSync() throws InterruptedException { public void givenMultiThread_whenBlockSync() throws InterruptedException {

View File

@ -10,7 +10,7 @@ import java.util.stream.IntStream;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
public class BaeldungSynchronizeMethodsTest { public class BaeldungSynchronizeMethodsUnitTest {
@Test @Test
@Ignore @Ignore

View File

@ -18,7 +18,7 @@ import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import static org.assertj.core.api.Assertions.*; import static org.assertj.core.api.Assertions.*;
public class FileCopierTest { public class FileCopierIntegrationTest {
File original = new File("src/test/resources/original.txt"); File original = new File("src/test/resources/original.txt");
@Before @Before

View File

@ -24,7 +24,7 @@ import org.junit.Test;
import com.baeldung.util.StreamUtils; import com.baeldung.util.StreamUtils;
public class FilesTest { public class FilesManualTest {
public static final String fileName = "src/main/resources/countries.properties"; public static final String fileName = "src/main/resources/countries.properties";

View File

@ -9,7 +9,7 @@ public class ArrayBenchmarkRunner {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
Options options = new OptionsBuilder() Options options = new OptionsBuilder()
.include(SearchArrayTest.class.getSimpleName()).threads(1) .include(SearchArrayUnitTest.class.getSimpleName()).threads(1)
.forks(1).shouldFailOnError(true).shouldDoGC(true) .forks(1).shouldFailOnError(true).shouldDoGC(true)
.jvmArgs("-server").build(); .jvmArgs("-server").build();

View File

@ -8,7 +8,7 @@ import java.util.concurrent.TimeUnit;
@BenchmarkMode(Mode.AverageTime) @BenchmarkMode(Mode.AverageTime)
@Warmup(iterations = 5) @Warmup(iterations = 5)
@OutputTimeUnit(TimeUnit.MICROSECONDS) @OutputTimeUnit(TimeUnit.MICROSECONDS)
public class SearchArrayTest { public class SearchArrayUnitTest {
@State(Scope.Benchmark) @State(Scope.Benchmark)
public static class SearchData { public static class SearchData {

View File

@ -15,7 +15,7 @@ import static org.junit.Assert.assertArrayEquals;
import org.junit.Test; import org.junit.Test;
public class ArrayInitializerTest { public class ArrayInitializerUnitTest {
@Test @Test
public void whenInitializeArrayInLoop_thenCorrect() { public void whenInitializeArrayInLoop_thenCorrect() {

View File

@ -3,7 +3,7 @@ package com.baeldung.array;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
public class Find2ndLargestInArrayTest { public class Find2ndLargestInArrayUnitTest {
@Test @Test
public void givenAnIntArray_thenFind2ndLargestElement() { public void givenAnIntArray_thenFind2ndLargestElement() {
int[] array = { 1, 3, 24, 16, 87, 20 }; int[] array = { 1, 3, 24, 16, 87, 20 };

View File

@ -3,7 +3,7 @@ package com.baeldung.array;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
public class FindElementInArrayTest { public class FindElementInArrayUnitTest {
@Test @Test
public void givenAnIntArray_whenNotUsingStream_thenFindAnElement() { public void givenAnIntArray_whenNotUsingStream_thenFindAnElement() {
int[] array = { 1, 3, 4, 8, 19, 20 }; int[] array = { 1, 3, 4, 8, 19, 20 };

View File

@ -3,7 +3,7 @@ package com.baeldung.array;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
public class SumAndAverageInArrayTest { public class SumAndAverageInArrayUnitTest {
@Test @Test
public void givenAnIntArray_whenNotUsingStream_thenFindSum() { public void givenAnIntArray_whenNotUsingStream_thenFindSum() {
int[] array = { 1, 3, 4, 8, 19, 20 }; int[] array = { 1, 3, 4, 8, 19, 20 };

View File

@ -6,7 +6,7 @@ import org.junit.Test;
import com.baeldung.asciiart.AsciiArt.Settings; import com.baeldung.asciiart.AsciiArt.Settings;
public class AsciiArtTest { public class AsciiArtIntegrationTest {
@Test @Test
public void givenTextWithAsciiCharacterAndSettings_shouldPrintAsciiArt() { public void givenTextWithAsciiCharacterAndSettings_shouldPrintAsciiArt() {

View File

@ -9,7 +9,7 @@ import static org.junit.Assert.assertEquals;
import org.junit.Test; import org.junit.Test;
public class BreakContinueTest { public class BreakContinueUnitTest {
@Test @Test
public void whenUnlabeledBreak_ThenEqual() { public void whenUnlabeledBreak_ThenEqual() {

View File

@ -5,7 +5,7 @@ import static org.junit.Assert.*;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
public class CastingTest { public class CastingUnitTest {
@Test @Test
public void whenPrimitiveConverted_thenValueChanged() { public void whenPrimitiveConverted_thenValueChanged() {

View File

@ -5,7 +5,7 @@ import org.junit.Test;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method; import java.lang.reflect.Method;
public class CustomClassLoaderTest { public class CustomClassLoaderUnitTest {
@Test @Test
public void customLoader() throws ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException { public void customLoader() throws ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException {

View File

@ -4,7 +4,7 @@ import org.junit.Test;
import static org.junit.Assert.*; import static org.junit.Assert.*;
public class PrintClassLoaderTest { public class PrintClassLoaderUnitTest {
@Test(expected = ClassNotFoundException.class) @Test(expected = ClassNotFoundException.class)
public void givenAppClassLoader_whenParentClassLoader_thenClassNotFoundException() throws Exception { public void givenAppClassLoader_whenParentClassLoader_thenClassNotFoundException() throws Exception {
PrintClassLoader sampleClassLoader = (PrintClassLoader) Class.forName(PrintClassLoader.class.getName()).newInstance(); PrintClassLoader sampleClassLoader = (PrintClassLoader) Class.forName(PrintClassLoader.class.getName()).newInstance();

View File

@ -2,7 +2,7 @@ package com.baeldung.classnotfoundexception;
import org.junit.Test; import org.junit.Test;
public class ClassNotFoundExceptionTest { public class ClassNotFoundExceptionUnitTest {
@Test(expected = ClassNotFoundException.class) @Test(expected = ClassNotFoundException.class)
public void givenNoDriversInClassPath_whenLoadDrivers_thenClassNotFoundException() throws ClassNotFoundException { public void givenNoDriversInClassPath_whenLoadDrivers_thenClassNotFoundException() throws ClassNotFoundException {