Skip to content

Commit

Permalink
Fix test names (eugenp#1853)
Browse files Browse the repository at this point in the history
* upgrade to spring boot 1.5.2

* add full update to REST API

* modify ratings controller

* upgrade herold

* fix integration test

* fix integration test

* minor fix

* fix integration test

* fix integration test

* minor cleanup

* minor cleanup

* remove log4j properties

* use standard logbook.xml

* remove log4j dependencies

* remove commons-logging

* merge

* fix conflict

* exclude commons-logging dependency

* cleanup

* minor fix

* minor fix

* fix dependency issues

* Revert "fix dependency issues"

This reverts commit 83bf1f9.

* fix dependency issues

* minor fix

* minor fix

* minor fix

* cleanup generated files

* fix commons-logging issue

* add parent to pom

* cleanup parent dependencies

* cleanup pom

* cleanup pom

* add missing parent

* fix logging issue

* fix test names
  • Loading branch information
Doha2012 authored and Eugen committed May 15, 2017
1 parent 5a58aac commit 48cd6f8
Show file tree
Hide file tree
Showing 369 changed files with 405 additions and 405 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Tests which show issues with JGit that we reported upstream.
*/
public class JGitBugTest {
public class JGitBugIntegrationTest {
@Test
public void testRevWalkDisposeClosesReader() throws IOException {
try (Repository repo = Helper.openJGitRepository()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.junit.Test;

public class PorcelainTest {
public class PorcelainUnitTest {
@Test
public void runSamples() throws Exception {
// simply call all the samples to see any severe problems with the samples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import twitter4j.TwitterException;

public class ApplicationTest {
public class ApplicationIntegrationTest {

/**
* In order run this jUnit test you need to configure your API details in the twitter4j.properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

public class PrimeCheckerTest {
public class PrimeCheckerUnitTest {

private final BigIntegerPrimeChecker primeChecker = new BigIntegerPrimeChecker();

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

import static org.junit.Assert.assertEquals;

public class PersonBuilderTest {
public class PersonBuilderUnitTest {

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

import com.baeldung.model.User;

public class ValidationTest {
public class ValidationIntegrationTest {
private static ValidatorFactory validatorFactory;
private static Validator validator;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.cxf.aegis.AegisWriter;
import org.apache.cxf.aegis.type.AegisType;

public class BaeldungTest {
public class BaeldungIntegrationTest {
private AegisContext context;
private String fileName = "baeldung.xml";

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

public class JExcelTest {
public class JExcelIntegrationTest {

private JExcelHelper jExcelHelper;
private static String FILE_NAME = "temp.xls";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import org.junit.Before;
import org.junit.After;

public class ExcelTest {
public class ExcelIntegrationTest {

private ExcelPOIHelper excelPOIHelper;
private static String FILE_NAME = "temp.xlsx";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
import org.junit.BeforeClass;
import org.junit.Test;

public class WordTest {
public class WordIntegrationTest {
static WordDocument wordDocument;

@BeforeClass
public static void generateMSWordFile() throws Exception {
WordTest.wordDocument = new WordDocument();
WordIntegrationTest.wordDocument = new WordDocument();
wordDocument.handleSimpleDoc();
}

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

public class CrossPlatformServiceTest {
public class CrossPlatformServiceIntegrationTest {

private CrossPlatformServiceServer server = new CrossPlatformServiceServer();

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

import java.util.UUID;

public class MessagesAggregateTest {
public class MessagesAggregateIntegrationTest {

private FixtureConfiguration<MessagesAggregate> fixture;

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

import org.junit.Test;

public class Java9OptionalsStreamTest {
public class Java9OptionalsStreamUnitTest {

private static List<Optional<String>> listOfOptionals = Arrays.asList(Optional.empty(), Optional.of("foo"), Optional.empty(), Optional.of("bar"));

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

import org.junit.Test;

public class MultiResultionImageTest {
public class MultiResultionImageUnitTest {

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

public class OptionalToStreamTest {
public class OptionalToStreamUnitTest {

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

import static org.junit.Assert.assertEquals;

public class SetExamplesTest {
public class SetExamplesUnitTest {

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

public class CompletableFutureTest {
public class CompletableFutureUnitTest {
@Test
public void testDelay () throws Exception {
Object input = new Object();
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 SimpleHttpRequestsTest {
public class SimpleHttpRequestsUnitTest {

private URI httpURI;

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

import org.junit.Test;

public class DiamondTest {
public class DiamondUnitTest {

static class FooClass<X> {
FooClass(X x) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.baeldung.java9.language.PrivateInterface;
import org.junit.Test;

public class PrivateInterfaceTest {
public class PrivateInterfaceUnitTest {

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

public class TryWithResourcesTest {
public class TryWithResourcesUnitTest {

static int closeCount = 0;

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

public class ListFactoryMethodsTest {
public class ListFactoryMethodsUnitTest {

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

public class MapFactoryMethodsTest {
public class MapFactoryMethodsUnitTest {

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

public class SetFactoryMethodsTest {
public class SetFactoryMethodsUnitTest {

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

import static org.junit.Assert.assertEquals;

public class CollectorImprovementTest {
public class CollectorImprovementUnitTest {
@Test
public void givenList_whenSatifyPredicate_thenMapValueWithOccurences() {
List<Integer> numbers = List.of(1, 2, 3, 5, 5);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import static java.lang.Integer.*;
import static org.junit.Assert.assertEquals;

public class StreamFeaturesTest {
public class StreamFeaturesUnitTest {

public static class TakeAndDropWhileTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Created by sanaulla on 2/23/2017.
*/

public class ProcessAPIEnhancementsTest {
public class ProcessAPIEnhancementsUnitTest {

Logger log = LoggerFactory.getLogger(ProcessAPIEnhancementsTest.class);

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

public class ProcessApi {
public class ProcessApiUnitTest {

@Before
public void init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.junit.Test;
import org.junit.rules.Stopwatch;

public class BaeldungBatchSubscriberImplTest {
public class BaeldungBatchSubscriberImplIntegrationTest {

private static final int ITEM_SIZE = 10;
private SubmissionPublisher<String> publisher;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.junit.Test;
import org.junit.rules.Stopwatch;

public class BaeldungSubscriberImplTest {
public class BaeldungSubscriberImplIntegrationTest {

private static final int ITEM_SIZE = 10;
private SubmissionPublisher<String> publisher;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.junit.Test;

public class StackWalkerDemoTest {
public class StackWalkerDemoUnitTest {

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

import java.util.Arrays;

public class ArrayCopyUtilTest {
public class ArrayCopyUtilUnitTest {
private static Employee[] employees;
private static final int MAX = 2;

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

import static junit.framework.TestCase.assertEquals;

public class LongAccumulatorTest {
public class LongAccumulatorUnitTest {

@Test
public void givenLongAccumulator_whenApplyActionOnItFromMultipleThrads_thenShouldProduceProperResult() throws InterruptedException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import static com.jayway.awaitility.Awaitility.await;
import static junit.framework.TestCase.assertEquals;

public class LongAdderTest {
public class LongAdderUnitTest {
@Test
public void givenMultipleThread_whenTheyWriteToSharedLongAdder_thenShouldCalculateSumForThem() throws InterruptedException {
//given
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;


public class CopyOnWriteArrayListTest {
public class CopyOnWriteArrayListUnitTest {

@Test
public void givenCopyOnWriteList_whenIterateAndAddElementToUnderneathList_thenShouldNotChangeIterator() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import static junit.framework.TestCase.assertEquals;

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class DelayQueueTest {
public class DelayQueueIntegrationTest {
@Test
public void givenDelayQueue_whenProduceElement_thenShouldConsumeAfterGivenDelay() throws InterruptedException {
//given
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import static junit.framework.TestCase.assertEquals;

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class PhaserTest {
public class PhaserUnitTest {

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

import org.junit.Test;

public class JavaDurationTest {
public class JavaDurationUnitTest {

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

public class JavaPeriodTest {
public class JavaPeriodUnitTest {

private static final Logger LOG = Logger.getLogger(JavaPeriodTest.class);
private static final Logger LOG = Logger.getLogger(JavaPeriodUnitTest.class);

@Test
public void whenTestPeriod_thenOk() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;

public class DynamicProxyTest {
public class DynamicProxyIntegrationTest {

@Test
public void givenDynamicProxy_thenPutWorks() {
Map proxyInstance = (Map) Proxy.newProxyInstance(DynamicProxyTest.class.getClassLoader(), new Class[] { Map.class }, new DynamicInvocationHandler());
Map proxyInstance = (Map) Proxy.newProxyInstance(DynamicProxyIntegrationTest.class.getClassLoader(), new Class[] { Map.class }, new DynamicInvocationHandler());

proxyInstance.put("hello", "world");
}

@Test
public void givenInlineDynamicProxy_thenGetWorksOtherMethodsDoNot() {
Map proxyInstance = (Map) Proxy.newProxyInstance(DynamicProxyTest.class.getClassLoader(), new Class[] { Map.class }, (proxy, method, methodArgs) -> {
Map proxyInstance = (Map) Proxy.newProxyInstance(DynamicProxyIntegrationTest.class.getClassLoader(), new Class[] { Map.class }, (proxy, method, methodArgs) -> {

if (method.getName().equals("get")) {
return 42;
Expand All @@ -43,12 +43,12 @@ public void givenInlineDynamicProxy_thenGetWorksOtherMethodsDoNot() {

@Test
public void givenTimingDynamicProxy_thenMethodInvokationsProduceTiming() {
Map mapProxyInstance = (Map) Proxy.newProxyInstance(DynamicProxyTest.class.getClassLoader(), new Class[] { Map.class }, new TimingDynamicInvocationHandler(new HashMap<>()));
Map mapProxyInstance = (Map) Proxy.newProxyInstance(DynamicProxyIntegrationTest.class.getClassLoader(), new Class[] { Map.class }, new TimingDynamicInvocationHandler(new HashMap<>()));

mapProxyInstance.put("hello", "world");
assertEquals("world", mapProxyInstance.get("hello"));

CharSequence csProxyInstance = (CharSequence) Proxy.newProxyInstance(DynamicProxyTest.class.getClassLoader(), new Class[] { CharSequence.class }, new TimingDynamicInvocationHandler("Hello World"));
CharSequence csProxyInstance = (CharSequence) Proxy.newProxyInstance(DynamicProxyIntegrationTest.class.getClassLoader(), new Class[] { CharSequence.class }, new TimingDynamicInvocationHandler("Hello World"));

assertEquals('l', csProxyInstance.charAt(2));
assertEquals(11, csProxyInstance.length());
Expand Down
Loading

0 comments on commit 48cd6f8

Please sign in to comment.