Bael 6556 3 (#4382)

* Added parent module on poms that have no parent defined

* Removed dependency reduced pom from undertow module

* [BAEL-6556] - Next set of renames of testcases

* [BAEL-6556] - Next set of renames of testcases

* [BAEL-6556] - Next set of renames of testcases

* [BAEL-6556] - Next set of renames of testcases
This commit is contained in:
Amit Pandey 2018-06-01 16:42:51 +05:30 committed by Grzegorz Piwowarek
parent cfa5f07c96
commit 7206e64bef
150 changed files with 187 additions and 182 deletions

View File

@ -24,7 +24,7 @@ import org.jgrapht.traverse.DepthFirstIterator;
import org.junit.Before;
import org.junit.Test;
public class DirectedGraphUnitTests {
public class DirectedGraphUnitTest {
DirectedGraph<String, DefaultEdge> directedGraph;
@Before

View File

@ -8,7 +8,7 @@ import opennlp.tools.tokenize.WhitespaceTokenizer;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
public class TokenizerTest {
public class TokenizerUnitTest {
@Test
public void givenEnglishModel_whenTokenize_thenTokensAreDetected() throws Exception {

View File

@ -8,7 +8,7 @@ import java.util.List;
import static org.junit.Assert.assertEquals;
public class StreamIndicesTest {
public class StreamIndicesUnitTest {
@Test
public void whenCalled_thenReturnListOfEvenIndexedStrings() {

View File

@ -1,7 +1,7 @@
package com.baeldung.keyword;
import com.baeldung.keyword.superkeyword.SuperSub;
import com.baeldung.keyword.thiskeyword.KeywordTest;
import com.baeldung.keyword.thiskeyword.KeywordUnitTest;
/**
* Created by Gebruiker on 5/14/2018.
@ -9,7 +9,7 @@ import com.baeldung.keyword.thiskeyword.KeywordTest;
public class KeywordDemo {
public static void main(String[] args) {
KeywordTest keyword = new KeywordTest();
KeywordUnitTest keyword = new KeywordUnitTest();
SuperSub child = new SuperSub("message from the child class");
}

View File

@ -1,17 +1,17 @@
package com.baeldung.keyword.thiskeyword;
public class KeywordTest {
public class KeywordUnitTest {
private String name;
private int age;
public KeywordTest() {
public KeywordUnitTest() {
this("John", 27);
this.printMessage();
printInstance(this);
}
public KeywordTest(String name, int age) {
public KeywordUnitTest(String name, int age) {
this.name = name;
this.age = age;
}
@ -20,11 +20,11 @@ public class KeywordTest {
System.out.println("invoked by this");
}
public void printInstance(KeywordTest thisKeyword) {
public void printInstance(KeywordUnitTest thisKeyword) {
System.out.println(thisKeyword);
}
public KeywordTest getCurrentInstance() {
public KeywordUnitTest getCurrentInstance() {
return this;
}
@ -33,8 +33,8 @@ public class KeywordTest {
boolean isInnerClass = true;
public ThisInnerClass() {
KeywordTest thisKeyword = KeywordTest.this;
String outerString = KeywordTest.this.name;
KeywordUnitTest thisKeyword = KeywordUnitTest.this;
String outerString = KeywordUnitTest.this.name;
System.out.println(this.isInnerClass);
}
}

View File

@ -11,7 +11,7 @@ import java.util.Locale;
import org.junit.Test;
public class DecimalFormatExamplesTest {
public class DecimalFormatExamplesUnitTest {
double d = 1234567.89;

View File

@ -13,7 +13,7 @@ import java.util.TimeZone;
import org.junit.Ignore;
import org.junit.Test;
public class DaylightSavingTimeExamplesTest {
public class DaylightSavingTimeExamplesUnitTest {
@Test
public void givenItalianTimeZone_WhenDSTHappens_ThenCorrectlyShiftTimeZone() throws ParseException {

View File

@ -11,7 +11,7 @@ import java.util.TimeZone;
import org.junit.Test;
public class DaylightSavingTimeJavaTimeExamplesTest {
public class DaylightSavingTimeJavaTimeExamplesUnitTest {
@Test
public void givenItalianTimeZone_WhenDSTHappens_ThenCorrectlyShiftTimeZone() throws ParseException {

View File

@ -3,7 +3,7 @@ package com.baeldung.extension;
import org.junit.Assert;
import org.junit.Test;
public class ExtensionTest {
public class ExtensionUnitTest {
private Extension extension = new Extension();
@Test

View File

@ -8,7 +8,7 @@ import java.util.Map;
import static org.junit.Assert.assertTrue;
public class ApplicationTest {
public class ApplicationUnitTest {
@Test
public void main_NoInputState_TextPrintedToConsole() throws Exception {

View File

@ -5,7 +5,7 @@ import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class UserTest {
public class UserUnitTest {
private User user;
private User comparisonUser;

View File

@ -6,14 +6,14 @@ import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
public class AppTest extends TestCase {
public class AppUnitTest extends TestCase {
public AppTest(String testName) {
public AppUnitTest(String testName) {
super( testName );
}
public static Test suite() {
return new TestSuite(AppTest.class);
return new TestSuite(AppUnitTest.class);
}
@SuppressWarnings("static-access")

View File

@ -6,7 +6,7 @@ import static org.assertj.core.api.Assertions.*;
import java.lang.reflect.InvocationTargetException;
public class UserTest {
public class UserUnitTest {
@Test
public void givenUserInstance_whenIntializedWithNew_thenInstanceIsNotNull() {

View File

@ -7,7 +7,7 @@ import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class InnerInterfaceTests {
public class InnerInterfaceUnitTest {
@Test
public void whenCustomerListJoined_thenReturnsJoinedNames() {
Customer.List customerList = new CommaSeparatedCustomers();

View File

@ -7,7 +7,7 @@ import static org.junit.Assert.assertEquals;
/**
* The class presents various ways of finding the name of currently executed method.
*/
public class CurrentlyExecutedMethodFinderTest {
public class CurrentlyExecutedMethodFinderUnitTest {
@Test
public void givenCurrentThread_whenGetStackTrace_thenFindMethod() {

View File

@ -23,8 +23,8 @@ import org.slf4j.LoggerFactory;
import com.baeldung.javanetworking.uriurl.URLDemo;
@FixMethodOrder
public class URIDemoTest {
private final Logger log = LoggerFactory.getLogger(URIDemoTest.class);
public class URIDemoLiveTest {
private final Logger log = LoggerFactory.getLogger(URIDemoLiveTest.class);
String URISTRING = "https://wordpress.org:443/support/topic/page-jumps-within-wordpress/?replies=3#post-2278484";
// parsed locator
static String URISCHEME = "https";

View File

@ -21,8 +21,8 @@ import org.slf4j.LoggerFactory;
import com.baeldung.javanetworking.uriurl.URLDemo;
@FixMethodOrder
public class URLDemoTest {
private final Logger log = LoggerFactory.getLogger(URLDemoTest.class);
public class URLDemoLiveTest {
private final Logger log = LoggerFactory.getLogger(URLDemoLiveTest.class);
static String URLSTRING = "https://wordpress.org:443/support/topic/page-jumps-within-wordpress/?replies=3#post-2278484";
// parsed locator
static String URLPROTOCOL = "https";

View File

@ -15,7 +15,7 @@ import java.sql.PreparedStatement;
import java.sql.Statement;
@RunWith(MockitoJUnitRunner.class)
public class BatchProcessingTest {
public class BatchProcessingLiveTest {
@InjectMocks

View File

@ -24,7 +24,7 @@ import com.sun.rowset.JdbcRowSetImpl;
import com.sun.rowset.JoinRowSetImpl;
import com.sun.rowset.WebRowSetImpl;
public class JdbcRowSetTest {
public class JdbcRowSetLiveTest {
Statement stmt = null;
String username = "sa";
String password = "";

View File

@ -5,6 +5,6 @@ import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({ RegistrationUnitTest.class, SignInUnitTest.class })
public class SuiteTest {
public class SuiteUnitTest {
}

View File

@ -33,7 +33,7 @@ import java.util.Date;
/**
* Created by adi on 4/14/18.
*/
public class JavaKeyStoreTest {
public class JavaKeyStoreUnitTest {
private JavaKeyStore keyStore;

View File

@ -6,7 +6,7 @@ import org.junit.Test;
import java.math.BigDecimal;
import java.math.RoundingMode;
public class BigDecimalImplTest {
public class BigDecimalImplUnitTest {
@Test
public void givenBigDecimalNumbers_whenAddedTogether_thenGetExpectedResult() {

View File

@ -5,7 +5,7 @@ import org.junit.Test;
import java.math.BigInteger;
public class BigIntegerImplTest {
public class BigIntegerImplUnitTest {
@Test
public void givenBigIntegerNumbers_whenAddedTogether_thenGetExpectedResult() {

View File

@ -5,7 +5,7 @@ import java.math.BigDecimal;
import org.junit.Assert;
import org.junit.Test;
public class FloatingPointArithmeticTest {
public class FloatingPointArithmeticUnitTest {
@Test
public void givenDecimalNumbers_whenAddedTogether_thenGetExpectedResult() {

View File

@ -8,7 +8,7 @@ import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
public class RoundTest {
public class RoundUnitTest {
private double value = 2.03456d;
private int places = 2;
private double delta = 0.0d;

View File

@ -2,7 +2,7 @@ package com.baeldung.noclassdeffounderror;
import org.junit.Test;
public class NoClassDefFoundErrorTest {
public class NoClassDefFoundErrorUnitTest {
@Test(expected = NoClassDefFoundError.class)
public void givenInitErrorInClass_whenloadClass_thenNoClassDefFoundError() {

View File

@ -3,7 +3,7 @@ package com.baeldung.recursion;
import org.junit.Assert;
import org.junit.Test;
public class RecursionExampleTest {
public class RecursionExampleUnitTest {
RecursionExample recursion = new RecursionExample();

View File

@ -7,7 +7,7 @@ import java.util.List;
import static org.junit.Assert.assertTrue;
public class BaeldungReflectionUtilsTest {
public class BaeldungReflectionUtilsUnitTest {
@Test
public void givenCustomer_whenAFieldIsNull_thenFieldNameInResult() throws Exception {

View File

@ -10,7 +10,7 @@ import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat;
public class EscapingCharsTest {
public class EscapingCharsUnitTest {
@Test
public void givenRegexWithDot_whenMatchingStr_thenMatches() {
String strInput = "foof";

View File

@ -4,7 +4,7 @@ import org.junit.Test;
import static junit.framework.TestCase.assertEquals;
public class SneakyRunnableTest {
public class SneakyRunnableUnitTest {
@Test
public void whenCallSneakyRunnableMethod_thenThrowException() {

View File

@ -4,7 +4,7 @@ import org.junit.Test;
import static junit.framework.TestCase.assertEquals;
public class SneakyThrowsTest {
public class SneakyThrowsUnitTest {
@Test
public void whenCallSneakyMethod_thenThrowSneakyException() {

View File

@ -3,7 +3,7 @@ package com.baeldung.string;
import static org.junit.Assert.*;
import org.junit.Test;
public class PalindromeTest {
public class PalindromeUnitTest {
private String[] words = {
"Anna",

View File

@ -7,7 +7,7 @@ import java.util.Objects;
import static org.assertj.core.api.Assertions.assertThat;
public class StringComparisonTest {
public class StringComparisonUnitTest {
@Test
public void whenUsingComparisonOperator_ThenComparingStrings(){

View File

@ -12,7 +12,7 @@ import java.util.regex.PatternSyntaxException;
import org.junit.Test;
public class StringTest {
public class StringUnitTest {
@Test
public void whenCallCodePointAt_thenDecimalUnicodeReturned() {

View File

@ -8,7 +8,7 @@ import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class StringFormatterExampleTests {
public class StringFormatterExampleUnitTest {
@Test
public void givenString_whenFormatSpecifierForCalendar_thenGotExpected() {

View File

@ -3,7 +3,7 @@ package com.baeldung.system;
import org.junit.Assert;
import org.junit.Test;
public class DateTimeServiceTest {
public class DateTimeServiceUnitTest {
@Test
public void givenClass_whenCalledMethods_thenNotNullInResult() {

View File

@ -3,7 +3,7 @@ package com.baeldung.system;
import org.junit.Assert;
import org.junit.Test;
public class EnvironmentVariablesTest {
public class EnvironmentVariablesUnitTest {
@Test
public void givenEnvVars_whenReadPath_thenGetValueinResult() {

View File

@ -3,7 +3,7 @@ package com.baeldung.system;
import org.junit.Assert;
import org.junit.Test;
public class SystemArrayCopyTest {
public class SystemArrayCopyUnitTest {
@Test
public void givenTwoArraysAB_whenUseArrayCopy_thenArrayCopiedFromAToBInResult() {

View File

@ -3,7 +3,7 @@ package com.baeldung.system;
import org.junit.Assert;
import org.junit.Test;
public class SystemNanoTest {
public class SystemNanoUnitTest {
@Test
public void givenSystem_whenCalledNanoTime_thenGivesTimeinResult() {

View File

@ -6,7 +6,7 @@ import org.junit.Test;
import java.util.Properties;
public class SystemPropertiesTest {
public class SystemPropertiesUnitTest {
@Test
public void givenSystem_whenCalledGetProperty_thenReturnPropertyinResult() {

View File

@ -5,7 +5,7 @@ import org.junit.Ignore;
import org.junit.Test;
@Ignore
public class WhenDetectingOSTest {
public class WhenDetectingOSUnitTest {
private DetectOS os = new DetectOS();

View File

@ -5,7 +5,7 @@ import java.util.concurrent.ThreadLocalRandom;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class ThreadLocalRandomTest {
public class ThreadLocalRandomIntegrationTest {
@Test
public void givenUsingThreadLocalRandom_whenGeneratingRandomIntBounded_thenCorrect() {

View File

@ -7,7 +7,7 @@ import java.util.Properties;
import static org.junit.Assert.assertEquals;
public class PropertiesLoaderTest {
public class PropertiesLoaderUnitTest {
@Test
public void loadProperties_whenPropertyReaded_thenSuccess() throws IOException {

View File

@ -5,7 +5,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
public class FormatterTest {
public class FormatterUnitTest {
private final static String FORMAT = "%s %s %s";

View File

@ -5,7 +5,7 @@ import java.util.List;
import org.junit.Test;
public class RawTypesTest {
public class RawTypesUnitTest {
@Test
public void shouldCreateListUsingRawTypes() {
@SuppressWarnings("rawtypes")

View File

@ -10,7 +10,7 @@ import com.baeldung.drools.model.Result;
import static junit.framework.TestCase.assertEquals;
public class BackwardChainingTest {
public class BackwardChainingIntegrationTest {
private Result result;
private KieSession ksession;

View File

@ -11,7 +11,7 @@ import java.util.concurrent.ConcurrentHashMap;
import static org.hamcrest.CoreMatchers.equalTo;
public class GuavaMiscUtilsTest {
public class GuavaMiscUtilsUnitTest {
@Test
public void whenHashingData_shouldReturnCorrectHashCode() throws Exception {
int receivedData = 123;

View File

@ -12,7 +12,7 @@ import static org.hamcrest.collection.IsIterableContainingInAnyOrder.containsInA
import static org.hamcrest.core.AnyOf.anyOf;
import static org.junit.Assert.*;
public class GuavaMiscUtilsTest {
public class GuavaMiscUtilsUnitTest {
@Test
public void whenGettingLazyStackTrace_ListShouldBeReturned() throws Exception {

View File

@ -13,7 +13,7 @@ import java.util.stream.IntStream;
import static org.junit.Assert.assertEquals;
public class ZipCollectionTest {
public class ZipCollectionUnitTest {
private List<String> names;
private List<Integer> ages;

View File

@ -9,7 +9,7 @@ import java.util.stream.IntStream;
import static org.assertj.core.api.Assertions.assertThat;
public class BloomFilterTest {
public class BloomFilterUnitTest {
@Test
public void givenBloomFilter_whenAddNStringsToIt_thenShouldNotReturnAnyFalsePositive() {

View File

@ -7,7 +7,7 @@ import org.junit.Test;
import com.google.common.io.CountingOutputStream;
public class GuavaCountingOutputStreamTest {
public class GuavaCountingOutputStreamUnitTest {
public static final int MAX = 5;
@Test(expected = RuntimeException.class)

View File

@ -4,7 +4,7 @@ import org.javalite.activejdbc.Base;
import org.junit.Assert;
import org.junit.Test;
public class ProductTest {
public class ProductUnitTest {
//@Test
public void givenSavedProduct_WhenFindFirst_ThenSavedProductIsReturned() {

View File

@ -19,7 +19,7 @@ import com.google.gson.Gson;
@RunWith(MockitoJUnitRunner.class)
public class EmployeeServletTest {
public class EmployeeServletIntegrationTest {
@Mock
HttpServletRequest httpServletRequest;

View File

@ -7,7 +7,7 @@ import org.junit.Ignore;
import org.junit.Test;
@Ignore
public class JerseyClientTest {
public class JerseyClientIntegrationTest {
private static int HTTP_OK = 200;

View File

@ -17,7 +17,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
public class ServiceTest {
public class ServiceIntegrationTest {
private InputStream jsonInputStream = this.getClass()
.getClassLoader()
.getResourceAsStream("intro_service.json");

View File

@ -13,7 +13,7 @@ import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class CacheLoaderTest {
public class CacheLoaderIntegrationTest {
private static final String CACHE_NAME = "SimpleCache";

View File

@ -6,7 +6,7 @@ import org.junit.AfterClass;
import java.lang.reflect.Field;
public class Log4j2Test {
public class Log4j2BaseIntegrationTest {
@AfterClass
public static void tearDown() throws Exception {
Field factories = ConfigurationFactory.class.getDeclaredField("factories");

View File

@ -4,7 +4,7 @@
**/
package com.baeldung.logging.log4j2.setconfigurationfactory;
import com.baeldung.logging.log4j2.Log4j2Test;
import com.baeldung.logging.log4j2.Log4j2BaseIntegrationTest;
import com.baeldung.logging.log4j2.simpleconfiguration.CustomConfigurationFactory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@ -17,7 +17,7 @@ import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class SetConfigurationFactoryTest extends Log4j2Test {
public class SetConfigurationFactoryIntegrationTest extends Log4j2BaseIntegrationTest {
@BeforeClass
public static void setUp() {
CustomConfigurationFactory customConfigurationFactory = new CustomConfigurationFactory();

View File

@ -4,7 +4,7 @@
**/
package com.baeldung.logging.log4j2.simpleconfiguration;
import com.baeldung.logging.log4j2.Log4j2Test;
import com.baeldung.logging.log4j2.Log4j2BaseIntegrationTest;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.Marker;
@ -13,7 +13,7 @@ import org.apache.logging.log4j.core.config.plugins.util.PluginManager;
import org.junit.BeforeClass;
import org.junit.Test;
public class SimpleConfigurationTest extends Log4j2Test {
public class SimpleConfigurationIntegrationTest extends Log4j2BaseIntegrationTest {
@BeforeClass
public static void setUp() {
PluginManager.addPackage("com.baeldung.logging.log4j2.simpleconfiguration");

View File

@ -5,7 +5,7 @@
package com.baeldung.logging.log4j2.simpleconfigurator;
import com.baeldung.logging.log4j2.Log4j2Test;
import com.baeldung.logging.log4j2.Log4j2BaseIntegrationTest;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.core.appender.ConsoleAppender;
import org.apache.logging.log4j.core.config.Configurator;
@ -18,7 +18,7 @@ import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class SimpleConfiguratorTest extends Log4j2Test {
public class SimpleConfiguratorIntegrationTest extends Log4j2BaseIntegrationTest {
@Test
public void givenDefaultLog4j2Environment_whenProgrammaticallyConfigured_thenLogsCorrectly() {

View File

@ -6,7 +6,7 @@ import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import com.baeldung.logging.log4j2.Log4j2Test;
import com.baeldung.logging.log4j2.Log4j2BaseIntegrationTest;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Before;
@ -14,7 +14,7 @@ import org.junit.Test;
import com.fasterxml.jackson.databind.ObjectMapper;
public class JSONLayoutTest extends Log4j2Test {
public class JSONLayoutIntegrationTest extends Log4j2BaseIntegrationTest {
private static Logger logger;
private ByteArrayOutputStream consoleOutput = new ByteArrayOutputStream();

View File

@ -7,7 +7,7 @@
package com.baeldung.logging.log4j2.xmlconfiguration;
import com.baeldung.logging.log4j2.Log4j2Test;
import com.baeldung.logging.log4j2.Log4j2BaseIntegrationTest;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.Marker;
@ -17,7 +17,7 @@ import org.apache.logging.log4j.core.config.plugins.util.PluginManager;
import org.junit.BeforeClass;
import org.junit.Test;
public class XMLConfigLogTest extends Log4j2Test {
public class XMLConfigLogIntegrationTest extends Log4j2BaseIntegrationTest {
@BeforeClass
public static void setUp() {

View File

@ -13,7 +13,7 @@ import org.slf4j.LoggerFactory;
import com.fasterxml.jackson.databind.ObjectMapper;
public class JSONLayoutTest {
public class JSONLayoutIntegrationTest {
private static Logger logger;
private ByteArrayOutputStream consoleOutput = new ByteArrayOutputStream();

View File

@ -6,7 +6,7 @@ import org.junit.Test;
import ch.qos.logback.classic.Logger;
import org.slf4j.LoggerFactory;
public class LogbackTests {
public class LogbackIntegrationTest {
@Test
public void givenLogHierarchy_MessagesFiltered() {
@ -51,7 +51,7 @@ public class LogbackTests {
@Test
public void givenParameters_ValuesLogged() {
Logger logger = (ch.qos.logback.classic.Logger) LoggerFactory.getLogger(LogbackTests.class);
Logger logger = (ch.qos.logback.classic.Logger) LoggerFactory.getLogger(LogbackIntegrationTest.class);
String message = "This is a String";
Integer zero = 0;

View File

@ -11,7 +11,7 @@ import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class MapAppenderTest {
public class MapAppenderUnitTest {
private LoggerContext ctx;

View File

@ -12,7 +12,7 @@ import org.apache.lucene.store.FSDirectory;
import org.junit.Assert;
import org.junit.Test;
public class LuceneFileSearchTest {
public class LuceneFileSearchIntegrationTest {
@Test
public void givenSearchQueryWhenFetchedFileNamehenCorrect() throws IOException, URISyntaxException {

View File

@ -20,7 +20,7 @@ import org.apache.lucene.util.BytesRef;
import org.junit.Assert;
import org.junit.Test;
public class LuceneInMemorySearchTest {
public class LuceneInMemorySearchIntegrationTest {
@Test
public void givenSearchQueryWhenFetchedDocumentThenCorrect() {

View File

@ -6,7 +6,7 @@ import org.junit.Test;
import com.baeldung.maven.plugins.Data;
public class DataTest {
public class DataUnitTest {
@Test
public void whenDataObjectIsNotCreated_thenItIsNull() {
Data data = null;

View File

@ -39,7 +39,7 @@ import com.netflix.spectator.atlas.AtlasConfig;
/**
* @author aiet
*/
public class MicrometerAtlasTest {
public class MicrometerAtlasIntegrationTest {
private AtlasConfig atlasConfig;

View File

@ -11,7 +11,7 @@ import java.util.List;
import static junit.framework.Assert.assertEquals;
public class OrientDBDocumentAPITest {
public class OrientDBDocumentAPILiveTest {
private static ODatabaseDocumentTx db = null;
// @BeforeClass

View File

@ -10,7 +10,7 @@ import org.junit.Test;
import static junit.framework.Assert.assertEquals;
public class OrientDBGraphAPITest {
public class OrientDBGraphAPILiveTest {
private static OrientGraphNoTx graph = null;
// @BeforeClass

View File

@ -10,7 +10,7 @@ import java.util.List;
import static junit.framework.Assert.assertEquals;
public class OrientDBObjectAPITest {
public class OrientDBObjectAPILiveTest {
private static OObjectDatabaseTx db = null;
// @BeforeClass

View File

@ -1,10 +1,15 @@
package com.baeldung.pattern.chainofresponsibility;
package com.baeldung.chainofresponsibility;
import org.junit.Test;
import com.baeldung.pattern.chainofresponsibility.AuthenticationProcessor;
import com.baeldung.pattern.chainofresponsibility.OAuthAuthenticationProcessor;
import com.baeldung.pattern.chainofresponsibility.OAuthTokenProvider;
import com.baeldung.pattern.chainofresponsibility.UsernamePasswordProvider;
import com.baeldung.pattern.chainofresponsibility.SamlAuthenticationProvider;
import com.baeldung.pattern.chainofresponsibility.UsernamePasswordAuthenticationProcessor;
import static org.junit.Assert.assertTrue;
public class ChainOfResponsibilityTest {
public class ChainOfResponsibilityIntegrationTest {
private static AuthenticationProcessor getChainOfAuthProcessor() {

View File

@ -13,7 +13,7 @@ import java.util.List;
import static org.junit.Assert.*;
public class CarEngineFacadeTest {
public class CarEngineFacadeIntegrationTest {
private InMemoryCustomTestAppender appender;

View File

@ -1,4 +1,4 @@
package com.baeldung.pattern.templatemethod.test;
package com.baeldung.templatemethod.test;
import com.baeldung.pattern.templatemethod.model.Computer;
import com.baeldung.pattern.templatemethod.model.HighEndComputerBuilder;
@ -10,7 +10,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.junit.Assert.assertThat;
public class TemplateMethodPatternTest {
public class TemplateMethodPatternIntegrationTest {
private static StandardComputerBuilder standardComputerBuilder;
private static HighEndComputerBuilder highEndComputerBuilder;

View File

@ -17,7 +17,7 @@ import java.util.stream.Stream;
import static org.junit.Assert.*;
public class JdbiTest {
public class JdbiIntegrationTest {
@Test
public void whenJdbiCreated_thenSuccess() {

View File

@ -7,7 +7,7 @@ import org.junit.Test;
import reactor.core.publisher.Flux;
import reactor.test.StepVerifier;
public class CombiningPublishersTest {
public class CombiningPublishersIntegrationTest {
private static Integer min = 1;
private static Integer max = 5;

View File

@ -10,7 +10,7 @@ import static com.jayway.awaitility.Awaitility.await;
import static junit.framework.Assert.assertFalse;
import static junit.framework.Assert.assertTrue;
public class ConnectableObservableTest {
public class ConnectableObservableIntegrationTest {
@Test
public void givenConnectableObservable_whenConnect_thenGetMessage() throws InterruptedException {

View File

@ -18,7 +18,7 @@ import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
public class FlowableTest {
public class FlowableIntegrationTest {
@Test public void whenFlowableIsCreated_thenItIsProperlyInitialized() {
Flowable<Integer> integerFlowable = Flowable.just(1, 2, 3, 4);

View File

@ -5,7 +5,7 @@ import org.junit.Test;
import io.reactivex.Flowable;
import io.reactivex.Maybe;
public class MaybeTest {
public class MaybeUnitTest {
@Test
public void whenEmitsSingleValue_thenItIsObserved() {
Maybe<Integer> maybe = Flowable.just(1, 2, 3, 4, 5)

View File

@ -6,7 +6,7 @@ import rx.Observable;
import static com.baeldung.rxjava.ObservableImpl.getTitle;
import static junit.framework.Assert.assertTrue;
public class ObservableTest {
public class ObservableUnitTest {
private String result = "";

View File

@ -5,7 +5,7 @@ import rx.Observable;
import static junit.framework.Assert.assertTrue;
public class ResourceManagementTest {
public class ResourceManagementUnitTest {
@Test
public void givenResource_whenUsingOberservable_thenCreatePrintDisposeResource() throws InterruptedException {

View File

@ -9,7 +9,7 @@ import org.junit.Test;
import java.util.concurrent.TimeUnit;
public class RxRelayTest {
public class RxRelayIntegrationTest {
@Test
public void whenObserverSubscribedToPublishRelay_thenItReceivesEmittedEvents () {

View File

@ -6,7 +6,7 @@ import rx.Single;
import static junit.framework.Assert.assertTrue;
public class SingleTest {
public class SingleUnitTest {
@Test
public void givenSingleObservable_whenSuccess_thenGetMessage() throws InterruptedException {

View File

@ -5,7 +5,7 @@ import rx.subjects.PublishSubject;
import static junit.framework.Assert.assertTrue;
public class SubjectTest {
public class SubjectUnitTest {
@Test
public void givenSubjectAndTwoSubscribers_whenSubscribeOnSubject_thenSubscriberBeginsToAdd() {

View File

@ -14,7 +14,7 @@ import java.util.concurrent.TimeUnit;
import static com.jayway.awaitility.Awaitility.await;
import static org.junit.Assert.assertTrue;
public class UtilityOperatorsTest {
public class UtilityOperatorsIntegrationTest {
private int emittedTotal = 0;
private int receivedTotal = 0;

View File

@ -5,7 +5,7 @@ import org.junit.Test;
import rx.Observable;
import rx.observers.TestSubscriber;
public class RxJavaFilterOperatorsTest {
public class RxJavaFilterOperatorsIntegrationTest {
@Test
public void givenRangeObservable_whenFilteringItems_thenOddItemsAreFiltered() {

View File

@ -5,7 +5,7 @@ import org.junit.Test;
import rx.Observable;
import rx.observers.TestSubscriber;
public class RxJavaSkipOperatorsTest {
public class RxJavaSkipOperatorsIntegrationTest {
@Test
public void givenRangeObservable_whenSkipping_thenFirstFourItemsAreSkipped() {

View File

@ -9,7 +9,7 @@ import rx.Observable;
import rx.observers.TestSubscriber;
import rx.schedulers.TestScheduler;
public class RxJavaTimeFilteringOperatorsTest {
public class RxJavaTimeFilteringOperatorsIntegrationTest {
@Test
public void givenTimedObservable_whenSampling_thenOnlySampleItemsAreEmitted() {

View File

@ -9,7 +9,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
import static org.junit.Assert.assertTrue;
public class ExceptionHandlingTest {
public class ExceptionHandlingIntegrationTest {
private Error UNKNOWN_ERROR = new Error("unknown error");
private Exception UNKNOWN_EXCEPTION = new Exception("unknown exception");

View File

@ -9,7 +9,7 @@ import java.util.concurrent.atomic.AtomicInteger;
import static org.junit.Assert.assertTrue;
public class OnErrorRetryTest {
public class OnErrorRetryIntegrationTest {
private Error UNKNOWN_ERROR = new Error("unknown error");

View File

@ -11,7 +11,7 @@ import java.util.HashSet;
import java.util.List;
import java.util.Map;
public class RxAggregateOperatorsTest {
public class RxAggregateOperatorsUnitTest {
@Test
public void givenTwoObservable_whenConcatenatingThem_thenSuccessfull() {

View File

@ -9,7 +9,7 @@ import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
public class RxMathematicalOperatorsTest {
public class RxMathematicalOperatorsUnitTest {
@Test
public void givenRangeNumericObservable_whenCalculatingAverage_ThenSuccessfull() {

View File

@ -12,7 +12,7 @@ import rx.observables.StringObservable;
import rx.observers.TestSubscriber;
public class RxStringOperatorsTest
public class RxStringOperatorsUnitTest
{
@Test

View File

@ -2,7 +2,7 @@ package org.baeldung.aspectj;
import org.junit.Test;
public class SecuredMethodTest {
public class SecuredMethodUnitTest {
@Test
public void testMethod() throws Exception {
SecuredMethod service = new SecuredMethod();

View File

@ -9,7 +9,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(value = {"classpath:springAop-applicationContext.xml"})
public class CalculatorTest {
public class CalculatorIntegrationTest {
@Autowired
private SampleAdder sampleAdder;

View File

@ -13,7 +13,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = ChunksConfig.class)
public class ChunksTest {
public class ChunksIntegrationTest {
@Autowired private JobLauncherTestUtils jobLauncherTestUtils;

View File

@ -13,7 +13,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = TaskletsConfig.class)
public class TaskletsTest {
public class TaskletsIntegrationTest {
@Autowired private JobLauncherTestUtils jobLauncherTestUtils;

View File

@ -6,7 +6,7 @@ import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class DependencyInjectionTest {
public class DependencyInjectionIntegrationTest {
@Test
public void givenAutowiredAnnotation_WhenSetOnSetter_ThenDependencyValid() {

View File

@ -6,7 +6,7 @@ import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class BeanInjectionTest {
public class BeanInjectionIntegrationTest {
private ApplicationContext applicationContext;

Some files were not shown because too many files have changed in this diff Show More