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:
parent
cfa5f07c96
commit
7206e64bef
|
@ -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
|
|
@ -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 {
|
|
@ -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() {
|
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -11,7 +11,7 @@ import java.util.Locale;
|
|||
|
||||
import org.junit.Test;
|
||||
|
||||
public class DecimalFormatExamplesTest {
|
||||
public class DecimalFormatExamplesUnitTest {
|
||||
|
||||
double d = 1234567.89;
|
||||
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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
|
|
@ -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 {
|
|
@ -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;
|
|
@ -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")
|
|
@ -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() {
|
|
@ -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();
|
|
@ -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() {
|
|
@ -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";
|
|
@ -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";
|
|
@ -15,7 +15,7 @@ import java.sql.PreparedStatement;
|
|||
import java.sql.Statement;
|
||||
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class BatchProcessingTest {
|
||||
public class BatchProcessingLiveTest {
|
||||
|
||||
|
||||
@InjectMocks
|
|
@ -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 = "";
|
|
@ -5,6 +5,6 @@ import org.junit.runners.Suite;
|
|||
|
||||
@RunWith(Suite.class)
|
||||
@Suite.SuiteClasses({ RegistrationUnitTest.class, SignInUnitTest.class })
|
||||
public class SuiteTest {
|
||||
public class SuiteUnitTest {
|
||||
|
||||
}
|
|
@ -33,7 +33,7 @@ import java.util.Date;
|
|||
/**
|
||||
* Created by adi on 4/14/18.
|
||||
*/
|
||||
public class JavaKeyStoreTest {
|
||||
public class JavaKeyStoreUnitTest {
|
||||
|
||||
private JavaKeyStore keyStore;
|
||||
|
|
@ -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() {
|
|
@ -5,7 +5,7 @@ import org.junit.Test;
|
|||
|
||||
import java.math.BigInteger;
|
||||
|
||||
public class BigIntegerImplTest {
|
||||
public class BigIntegerImplUnitTest {
|
||||
|
||||
@Test
|
||||
public void givenBigIntegerNumbers_whenAddedTogether_thenGetExpectedResult() {
|
|
@ -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() {
|
|
@ -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;
|
|
@ -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() {
|
|
@ -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();
|
||||
|
|
@ -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 {
|
|
@ -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";
|
|
@ -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() {
|
|
@ -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() {
|
|
@ -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",
|
|
@ -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(){
|
|
@ -12,7 +12,7 @@ import java.util.regex.PatternSyntaxException;
|
|||
|
||||
import org.junit.Test;
|
||||
|
||||
public class StringTest {
|
||||
public class StringUnitTest {
|
||||
|
||||
@Test
|
||||
public void whenCallCodePointAt_thenDecimalUnicodeReturned() {
|
|
@ -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() {
|
|
@ -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() {
|
|
@ -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() {
|
|
@ -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() {
|
|
@ -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() {
|
|
@ -6,7 +6,7 @@ import org.junit.Test;
|
|||
|
||||
import java.util.Properties;
|
||||
|
||||
public class SystemPropertiesTest {
|
||||
public class SystemPropertiesUnitTest {
|
||||
|
||||
@Test
|
||||
public void givenSystem_whenCalledGetProperty_thenReturnPropertyinResult() {
|
|
@ -5,7 +5,7 @@ import org.junit.Ignore;
|
|||
import org.junit.Test;
|
||||
|
||||
@Ignore
|
||||
public class WhenDetectingOSTest {
|
||||
public class WhenDetectingOSUnitTest {
|
||||
|
||||
private DetectOS os = new DetectOS();
|
||||
|
|
@ -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() {
|
|
@ -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 {
|
|
@ -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";
|
||||
|
|
@ -5,7 +5,7 @@ import java.util.List;
|
|||
|
||||
import org.junit.Test;
|
||||
|
||||
public class RawTypesTest {
|
||||
public class RawTypesUnitTest {
|
||||
@Test
|
||||
public void shouldCreateListUsingRawTypes() {
|
||||
@SuppressWarnings("rawtypes")
|
|
@ -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;
|
||||
|
|
@ -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;
|
|
@ -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 {
|
|
@ -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;
|
|
@ -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() {
|
|
@ -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)
|
|
@ -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() {
|
|
@ -19,7 +19,7 @@ import com.google.gson.Gson;
|
|||
|
||||
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class EmployeeServletTest {
|
||||
public class EmployeeServletIntegrationTest {
|
||||
|
||||
@Mock
|
||||
HttpServletRequest httpServletRequest;
|
|
@ -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;
|
||||
|
|
@ -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");
|
|
@ -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";
|
||||
|
|
@ -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");
|
|
@ -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();
|
|
@ -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");
|
|
@ -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() {
|
|
@ -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();
|
|
@ -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() {
|
|
@ -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();
|
|
@ -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;
|
|
@ -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;
|
||||
|
|
@ -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 {
|
|
@ -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() {
|
|
@ -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;
|
|
@ -39,7 +39,7 @@ import com.netflix.spectator.atlas.AtlasConfig;
|
|||
/**
|
||||
* @author aiet
|
||||
*/
|
||||
public class MicrometerAtlasTest {
|
||||
public class MicrometerAtlasIntegrationTest {
|
||||
|
||||
private AtlasConfig atlasConfig;
|
||||
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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() {
|
||||
|
|
@ -13,7 +13,7 @@ import java.util.List;
|
|||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
public class CarEngineFacadeTest {
|
||||
public class CarEngineFacadeIntegrationTest {
|
||||
|
||||
|
||||
private InMemoryCustomTestAppender appender;
|
|
@ -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;
|
|
@ -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() {
|
|
@ -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;
|
|
@ -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 {
|
|
@ -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);
|
|
@ -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)
|
|
@ -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 = "";
|
||||
|
|
@ -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 {
|
|
@ -9,7 +9,7 @@ import org.junit.Test;
|
|||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class RxRelayTest {
|
||||
public class RxRelayIntegrationTest {
|
||||
|
||||
@Test
|
||||
public void whenObserverSubscribedToPublishRelay_thenItReceivesEmittedEvents () {
|
|
@ -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 {
|
|
@ -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() {
|
|
@ -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;
|
|
@ -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() {
|
|
@ -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() {
|
|
@ -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() {
|
|
@ -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");
|
|
@ -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");
|
||||
|
|
@ -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() {
|
|
@ -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() {
|
|
@ -12,7 +12,7 @@ import rx.observables.StringObservable;
|
|||
import rx.observers.TestSubscriber;
|
||||
|
||||
|
||||
public class RxStringOperatorsTest
|
||||
public class RxStringOperatorsUnitTest
|
||||
{
|
||||
|
||||
@Test
|
|
@ -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();
|
|
@ -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;
|
|
@ -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;
|
||||
|
|
@ -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;
|
||||
|
|
@ -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() {
|
|
@ -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
Loading…
Reference in New Issue