Skip to content

Commit

Permalink
Bael 6556 2 (eugenp#4365)
Browse files Browse the repository at this point in the history
* Added parent module on poms that have no parent defined

* Removed dependency reduced pom from undertow module

* [BAEL-6556] - Next set of testcase renamed
  • Loading branch information
amit2103 authored and pivovarit committed May 29, 2018
1 parent 8713e26 commit dfcc0ca
Show file tree
Hide file tree
Showing 39 changed files with 41 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import static org.assertj.core.api.Assertions.tuple;
import org.junit.Test;

public class LanguageDetectorAndTrainingDataTest {
public class LanguageDetectorAndTrainingDataUnitTest {

@Test
public void givenLanguageDictionary_whenLanguageDetect_thenLanguageIsDetected() throws FileNotFoundException, IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;

public class LemmetizerTest {
public class LemmetizerUnitTest {

@Test
public void givenEnglishDictionary_whenLemmatize_thenLemmasAreDetected() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;

public class NamedEntityRecognitionTest {
public class NamedEntityRecognitionUnitTest {

@Test
public void givenEnglishPersonModel_whenNER_thenPersonsAreDetected() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;

public class POSTaggerTest {
public class POSTaggerUnitTest {

@Test
public void givenPOSModel_whenPOSTagging_thenPOSAreDetected() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;

public class SentenceDetectionTest {
public class SentenceDetectionUnitTest {

@Test
public void givenEnglishModel_whenDetect_thenSentencesAreDetected() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import static org.junit.Assert.assertEquals;

public class AppTest {
public class AppUnitTest {

@Rule
public BQTestFactory bqTestFactory = new BQTestFactory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import com.baeldung.counter.CounterUtil.MutableInteger;

public class CounterTest {
public class CounterUnitTest {

@Test
public void whenMapWithWrapperAsCounter_runsSuccessfully() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import org.junit.Test;

public class FindACustomerInGivenListTest {
public class FindACustomerInGivenListUnitTest {

private static List<Customer> customers = new ArrayList<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @author Santosh Thakur
*/

public class IteratorsTest {
public class IteratorsUnitTest {

@Test
public void whenFailFast_ThenThrowsException() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

import com.baeldung.optional.OrElseAndOrElseGet;

public class OrElseAndOrElseGetTest {
public class OrElseAndOrElseGetUnitTest {

private OrElseAndOrElseGet orElsevsOrElseGet = new OrElseAndOrElseGet();

private static final Logger LOG = LoggerFactory.getLogger(OrElseAndOrElseGetTest.class);
private static final Logger LOG = LoggerFactory.getLogger(OrElseAndOrElseGetUnitTest.class);

@Test
public void givenNonEmptyOptional_whenOrElseUsed_thenGivenStringReturned() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.junit.Test;
import static org.junit.Assert.*;

public class PrimeGeneratorTest {
public class PrimeGeneratorUnitTest {
@Test
public void whenBruteForced_returnsSuccessfully() {
final List<Integer> primeNumbers = primeNumbersBruteForce(20);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import org.junit.Before;
import org.junit.Test;

public class ExecutorTest {
public class ExecutorUnitTest {
Article article;
Stream<Author> stream;
Spliterator<Author> spliterator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import static org.junit.Assert.assertEquals;

public class StreamApiTest {
public class StreamApiUnitTest {

@Test
public void givenList_whenGetLastElementUsingReduce_thenReturnLastElement() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import com.baeldung.stream.mycollectors.MyImmutableListCollector;
import com.google.common.collect.ImmutableList;

public class StreamToImmutableTest {
public class StreamToImmutableUnitTest {

@Test
public void whenUsingCollectingToImmutableSet_thenSuccess() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import org.junit.Test;

public class SupplierStreamTest {
public class SupplierStreamUnitTest {

@Test(expected = IllegalStateException.class)
public void givenStream_whenStreamUsedTwice_thenThrowException() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import static org.junit.Assert.assertEquals;

public class CustomTemporalAdjusterTest {
public class CustomTemporalAdjusterUnitTest {

private static final TemporalAdjuster NEXT_WORKING_DAY = new CustomTemporalAdjuster();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.junit.Assert;
import org.junit.Test;

public class TemporalAdjustersTest {
public class TemporalAdjustersUnitTest {

@Test
public void whenAdjust_thenNextSunday() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import static org.junit.Assert.*;

public class ArrayConvertToListTest {
public class ArrayConvertToListUnitTest {

@Test
public void givenAnStringArray_whenConvertArrayToList_thenListCreated() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import static org.junit.Assert.*;
import org.junit.Test;

public class ArrayDequeTest {
public class ArrayDequeUnitTest {

@Test
public void whenOffer_addsAtLast() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import com.google.common.collect.Lists;

class IterableSizeTest {
class IterableSizeUnitTest {

private final List<String> list = Lists.newArrayList("Apple", "Orange", "Banana");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import com.google.common.collect.Multimap;
import com.google.common.collect.TreeMultimap;

public class MapMultipleValuesTest {
private static final Logger LOG = LoggerFactory.getLogger(MapMultipleValuesTest.class);
public class MapMultipleValuesUnitTest {
private static final Logger LOG = LoggerFactory.getLogger(MapMultipleValuesUnitTest.class);

@Test
public void givenHashMap_whenPuttingTwice_thenReturningFirstValue() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import org.junit.Test;

public class ThreadSafeCounterTest {
public class ThreadSafeCounterIntegrationTest {

@Test
public void givenMultiThread_whenSafeCounterWithLockIncrement() throws InterruptedException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.junit.Ignore;
import org.junit.Test;

public class DaemonThreadTest {
public class DaemonThreadUnitTest {

@Test
@Ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import static org.junit.Assert.assertEquals;

public class BaeldungSychronizedBlockTest {
public class BaeldungSychronizedBlockUnitTest {

@Test
public void givenMultiThread_whenBlockSync() throws InterruptedException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import static org.junit.Assert.assertEquals;

public class BaeldungSynchronizeMethodsTest {
public class BaeldungSynchronizeMethodsUnitTest {

@Test
@Ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import org.junit.Test;
import static org.assertj.core.api.Assertions.*;

public class FileCopierTest {
public class FileCopierIntegrationTest {
File original = new File("src/test/resources/original.txt");

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import com.baeldung.util.StreamUtils;

public class FilesTest {
public class FilesManualTest {

public static final String fileName = "src/main/resources/countries.properties";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class ArrayBenchmarkRunner {
public static void main(String[] args) throws Exception {

Options options = new OptionsBuilder()
.include(SearchArrayTest.class.getSimpleName()).threads(1)
.include(SearchArrayUnitTest.class.getSimpleName()).threads(1)
.forks(1).shouldFailOnError(true).shouldDoGC(true)
.jvmArgs("-server").build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@BenchmarkMode(Mode.AverageTime)
@Warmup(iterations = 5)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public class SearchArrayTest {
public class SearchArrayUnitTest {

@State(Scope.Benchmark)
public static class SearchData {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import org.junit.Test;

public class ArrayInitializerTest {
public class ArrayInitializerUnitTest {

@Test
public void whenInitializeArrayInLoop_thenCorrect() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import org.junit.Assert;
import org.junit.Test;

public class Find2ndLargestInArrayTest {
public class Find2ndLargestInArrayUnitTest {
@Test
public void givenAnIntArray_thenFind2ndLargestElement() {
int[] array = { 1, 3, 24, 16, 87, 20 };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import org.junit.Assert;
import org.junit.Test;

public class FindElementInArrayTest {
public class FindElementInArrayUnitTest {
@Test
public void givenAnIntArray_whenNotUsingStream_thenFindAnElement() {
int[] array = { 1, 3, 4, 8, 19, 20 };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import org.junit.Assert;
import org.junit.Test;

public class SumAndAverageInArrayTest {
public class SumAndAverageInArrayUnitTest {
@Test
public void givenAnIntArray_whenNotUsingStream_thenFindSum() {
int[] array = { 1, 3, 4, 8, 19, 20 };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import com.baeldung.asciiart.AsciiArt.Settings;

public class AsciiArtTest {
public class AsciiArtIntegrationTest {

@Test
public void givenTextWithAsciiCharacterAndSettings_shouldPrintAsciiArt() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import org.junit.Test;

public class BreakContinueTest {
public class BreakContinueUnitTest {

@Test
public void whenUnlabeledBreak_ThenEqual() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.util.ArrayList;
import java.util.List;

public class CastingTest {
public class CastingUnitTest {

@Test
public void whenPrimitiveConverted_thenValueChanged() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public class CustomClassLoaderTest {
public class CustomClassLoaderUnitTest {

@Test
public void customLoader() throws ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import static org.junit.Assert.*;

public class PrintClassLoaderTest {
public class PrintClassLoaderUnitTest {
@Test(expected = ClassNotFoundException.class)
public void givenAppClassLoader_whenParentClassLoader_thenClassNotFoundException() throws Exception {
PrintClassLoader sampleClassLoader = (PrintClassLoader) Class.forName(PrintClassLoader.class.getName()).newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.junit.Test;

public class ClassNotFoundExceptionTest {
public class ClassNotFoundExceptionUnitTest {

@Test(expected = ClassNotFoundException.class)
public void givenNoDriversInClassPath_whenLoadDrivers_thenClassNotFoundException() throws ClassNotFoundException {
Expand Down

0 comments on commit dfcc0ca

Please sign in to comment.