Skip to content

Commit

Permalink
Bael 6556 - PR - 1st ~ 20 TC (#4359)
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] - Enable our custom PMD rule and fix the build - Fixed Unit test case names
  • Loading branch information
amit2103 authored and pivovarit committed May 28, 2018
1 parent 498c760 commit ce645b6
Show file tree
Hide file tree
Showing 23 changed files with 33 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

public class HillClimbingAlgorithmTest {
public class HillClimbingAlgorithmUnitTest {
private Stack<String> initStack;
private Stack<String> goalStack;

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

import com.baeldung.algorithms.string.search.StringSearchAlgorithms;

public class StringSearchAlgorithmsTest {
public class StringSearchAlgorithmsUnitTest {


@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.junit.Test;
import com.baeldung.algorithms.binarysearch.BinarySearch;

public class BinarySearchTest {
public class BinarySearchUnitTest {

int[] sortedArray = { 0, 1, 2, 3, 4, 5, 5, 6, 7, 8, 9, 9 };
int key = 6;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import com.baeldung.algorithms.mcts.tictactoe.Position;
import com.baeldung.algorithms.mcts.tree.Tree;

public class MCTSTest {
public class MCTSUnitTest {
private Tree gameTree;
private MonteCarloTreeSearch mcts;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import com.baeldung.algorithms.minimax.MiniMax;
import com.baeldung.algorithms.minimax.Tree;

public class MinimaxTest {
public class MinimaxUnitTest {
private Tree gameTree;
private MiniMax miniMax;

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

import org.junit.Test;

public class BubbleSortTest {
public class BubbleSortUnitTest {

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

@RunWith(Parameterized.class)
public class EditDistanceTest extends EditDistanceDataProvider {
public class EditDistanceUnitTest extends EditDistanceDataProvider {

private String x;
private String y;
private int result;

public EditDistanceTest(String a, String b, int res) {
public EditDistanceUnitTest(String a, String b, int res) {
super();
x = a;
y = b;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import org.junit.runners.Parameterized;

@RunWith(value = Parameterized.class)
public class CycleDetectionBruteForceTest extends CycleDetectionTestBase {
public class CycleDetectionBruteForceUnitTest extends CycleDetectionTestBase {
boolean cycleExists;
Node<Integer> head;

public CycleDetectionBruteForceTest(Node<Integer> head, boolean cycleExists) {
public CycleDetectionBruteForceUnitTest(Node<Integer> head, boolean cycleExists) {
super();
this.cycleExists = cycleExists;
this.head = head;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import org.junit.runners.Parameterized;

@RunWith(value = Parameterized.class)
public class CycleDetectionByFastAndSlowIteratorsTest extends CycleDetectionTestBase {
public class CycleDetectionByFastAndSlowIteratorsUnitTest extends CycleDetectionTestBase {
boolean cycleExists;
Node<Integer> head;

public CycleDetectionByFastAndSlowIteratorsTest(Node<Integer> head, boolean cycleExists) {
public CycleDetectionByFastAndSlowIteratorsUnitTest(Node<Integer> head, boolean cycleExists) {
super();
this.cycleExists = cycleExists;
this.head = head;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import org.junit.runners.Parameterized;

@RunWith(value = Parameterized.class)
public class CycleDetectionByHashingTest extends CycleDetectionTestBase {
public class CycleDetectionByHashingUnitTest extends CycleDetectionTestBase {
boolean cycleExists;
Node<Integer> head;

public CycleDetectionByHashingTest(Node<Integer> head, boolean cycleExists) {
public CycleDetectionByHashingUnitTest(Node<Integer> head, boolean cycleExists) {
super();
this.cycleExists = cycleExists;
this.head = head;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import org.junit.runners.Parameterized;

@RunWith(value = Parameterized.class)
public class CycleRemovalBruteForceTest extends CycleDetectionTestBase {
public class CycleRemovalBruteForceUnitTest extends CycleDetectionTestBase {
boolean cycleExists;
Node<Integer> head;

public CycleRemovalBruteForceTest(Node<Integer> head, boolean cycleExists) {
public CycleRemovalBruteForceUnitTest(Node<Integer> head, boolean cycleExists) {
super();
this.cycleExists = cycleExists;
this.head = head;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import org.junit.runners.Parameterized;

@RunWith(value = Parameterized.class)
public class CycleRemovalByCountingLoopNodesTest extends CycleDetectionTestBase {
public class CycleRemovalByCountingLoopNodesUnitTest extends CycleDetectionTestBase {
boolean cycleExists;
Node<Integer> head;

public CycleRemovalByCountingLoopNodesTest(Node<Integer> head, boolean cycleExists) {
public CycleRemovalByCountingLoopNodesUnitTest(Node<Integer> head, boolean cycleExists) {
super();
this.cycleExists = cycleExists;
this.head = head;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import org.junit.runners.Parameterized;

@RunWith(value = Parameterized.class)
public class CycleRemovalWithoutCountingLoopNodesTest extends CycleDetectionTestBase {
public class CycleRemovalWithoutCountingLoopNodesUnitTest extends CycleDetectionTestBase {
boolean cycleExists;
Node<Integer> head;

public CycleRemovalWithoutCountingLoopNodesTest(Node<Integer> head, boolean cycleExists) {
public CycleRemovalWithoutCountingLoopNodesUnitTest(Node<Integer> head, boolean cycleExists) {
super();
this.cycleExists = cycleExists;
this.head = head;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import com.baeldung.algorithms.numberwordconverter.NumberWordConverter;

public class NumberWordConverterTest {
public class NumberWordConverterUnitTest {

@Test
public void whenMoneyNegative_thenReturnInvalidInput() {
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 @@ -12,7 +12,7 @@
import org.junit.Before;
import org.junit.Test;

public class CompleteGraphTest {
public class CompleteGraphUnitTest {

static SimpleWeightedGraph<String, DefaultEdge> completeGraph;
static int size = 10;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.junit.Before;
import org.junit.Test;

public class DirectedGraphTests {
public class DirectedGraphUnitTests {
DirectedGraph<String, DefaultEdge> directedGraph;

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

public class EulerianCircuitTest {
public class EulerianCircuitUnitTest {
SimpleWeightedGraph<String, DefaultEdge> simpleGraph;

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.curator.retry.RetryNTimes;
import org.junit.Before;

public abstract class BaseTest {
public abstract class BaseManualTest {

@Before
public void setup() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
import org.apache.curator.x.async.AsyncCuratorFramework;
import org.junit.Test;

import com.baeldung.apache.curator.BaseTest;
import com.baeldung.apache.curator.BaseManualTest;

public class ConfigurationManagementManualTest extends BaseTest {
public class ConfigurationManagementManualTest extends BaseManualTest {

private static final String KEY_FORMAT = "/%s";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
import org.apache.curator.x.async.modeled.ZPath;
import org.junit.Test;

import com.baeldung.apache.curator.BaseTest;
import com.baeldung.apache.curator.BaseManualTest;

public class ModelTypedExamplesManualTest extends BaseTest {
public class ModelTypedExamplesManualTest extends BaseManualTest {

@Test
public void givenPath_whenStoreAModel_thenNodesAreCreated()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
import org.apache.curator.framework.state.ConnectionState;
import org.junit.Test;

import com.baeldung.apache.curator.BaseTest;
import com.baeldung.apache.curator.BaseManualTest;

public class RecipesManualTest extends BaseTest {
public class RecipesManualTest extends BaseManualTest {

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

public class ChunkerTest {
public class ChunkerUnitTest {

@Test
public void givenChunkerModel_whenChunk_thenChunksAreDetected() throws Exception {
Expand Down

0 comments on commit ce645b6

Please sign in to comment.