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.Before;
import org.junit.Test; import org.junit.Test;
public class DirectedGraphUnitTests { public class DirectedGraphUnitTest {
DirectedGraph<String, DefaultEdge> directedGraph; DirectedGraph<String, DefaultEdge> directedGraph;
@Before @Before

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@ import org.junit.runner.RunWith;
import org.junit.runners.JUnit4; import org.junit.runners.JUnit4;
@RunWith(JUnit4.class) @RunWith(JUnit4.class)
public class InnerInterfaceTests { public class InnerInterfaceUnitTest {
@Test @Test
public void whenCustomerListJoined_thenReturnsJoinedNames() { public void whenCustomerListJoined_thenReturnsJoinedNames() {
Customer.List customerList = new CommaSeparatedCustomers(); 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. * The class presents various ways of finding the name of currently executed method.
*/ */
public class CurrentlyExecutedMethodFinderTest { public class CurrentlyExecutedMethodFinderUnitTest {
@Test @Test
public void givenCurrentThread_whenGetStackTrace_thenFindMethod() { public void givenCurrentThread_whenGetStackTrace_thenFindMethod() {

View File

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

View File

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

View File

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

View File

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

View File

@ -5,6 +5,6 @@ import org.junit.runners.Suite;
@RunWith(Suite.class) @RunWith(Suite.class)
@Suite.SuiteClasses({ RegistrationUnitTest.class, SignInUnitTest.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. * Created by adi on 4/14/18.
*/ */
public class JavaKeyStoreTest { public class JavaKeyStoreUnitTest {
private JavaKeyStore keyStore; private JavaKeyStore keyStore;

View File

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

View File

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

View File

@ -5,7 +5,7 @@ import java.math.BigDecimal;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
public class FloatingPointArithmeticTest { public class FloatingPointArithmeticUnitTest {
@Test @Test
public void givenDecimalNumbers_whenAddedTogether_thenGetExpectedResult() { 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.assertEquals;
import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertNotEquals;
public class RoundTest { public class RoundUnitTest {
private double value = 2.03456d; private double value = 2.03456d;
private int places = 2; private int places = 2;
private double delta = 0.0d; private double delta = 0.0d;

View File

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

View File

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

View File

@ -7,7 +7,7 @@ import java.util.List;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
public class BaeldungReflectionUtilsTest { public class BaeldungReflectionUtilsUnitTest {
@Test @Test
public void givenCustomer_whenAFieldIsNull_thenFieldNameInResult() throws Exception { 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.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class EscapingCharsTest { public class EscapingCharsUnitTest {
@Test @Test
public void givenRegexWithDot_whenMatchingStr_thenMatches() { public void givenRegexWithDot_whenMatchingStr_thenMatches() {
String strInput = "foof"; String strInput = "foof";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@ import java.util.Properties;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
public class PropertiesLoaderTest { public class PropertiesLoaderUnitTest {
@Test @Test
public void loadProperties_whenPropertyReaded_thenSuccess() throws IOException { 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.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.MatcherAssert.assertThat;
public class FormatterTest { public class FormatterUnitTest {
private final static String FORMAT = "%s %s %s"; private final static String FORMAT = "%s %s %s";

View File

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

View File

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

View File

@ -11,7 +11,7 @@ import java.util.concurrent.ConcurrentHashMap;
import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.equalTo;
public class GuavaMiscUtilsTest { public class GuavaMiscUtilsUnitTest {
@Test @Test
public void whenHashingData_shouldReturnCorrectHashCode() throws Exception { public void whenHashingData_shouldReturnCorrectHashCode() throws Exception {
int receivedData = 123; 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.hamcrest.core.AnyOf.anyOf;
import static org.junit.Assert.*; import static org.junit.Assert.*;
public class GuavaMiscUtilsTest { public class GuavaMiscUtilsUnitTest {
@Test @Test
public void whenGettingLazyStackTrace_ListShouldBeReturned() throws Exception { public void whenGettingLazyStackTrace_ListShouldBeReturned() throws Exception {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@ import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
@Ignore @Ignore
public class JerseyClientTest { public class JerseyClientIntegrationTest {
private static int HTTP_OK = 200; 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.assertEquals;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class ServiceTest { public class ServiceIntegrationTest {
private InputStream jsonInputStream = this.getClass() private InputStream jsonInputStream = this.getClass()
.getClassLoader() .getClassLoader()
.getResourceAsStream("intro_service.json"); .getResourceAsStream("intro_service.json");

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
**/ **/
package com.baeldung.logging.log4j2.simpleconfiguration; 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.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.Marker; 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.BeforeClass;
import org.junit.Test; import org.junit.Test;
public class SimpleConfigurationTest extends Log4j2Test { public class SimpleConfigurationIntegrationTest extends Log4j2BaseIntegrationTest {
@BeforeClass @BeforeClass
public static void setUp() { public static void setUp() {
PluginManager.addPackage("com.baeldung.logging.log4j2.simpleconfiguration"); PluginManager.addPackage("com.baeldung.logging.log4j2.simpleconfiguration");

View File

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

View File

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

View File

@ -7,7 +7,7 @@
package com.baeldung.logging.log4j2.xmlconfiguration; 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.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.Marker; 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.BeforeClass;
import org.junit.Test; import org.junit.Test;
public class XMLConfigLogTest extends Log4j2Test { public class XMLConfigLogIntegrationTest extends Log4j2BaseIntegrationTest {
@BeforeClass @BeforeClass
public static void setUp() { public static void setUp() {

View File

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

View File

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

View File

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

View File

@ -12,7 +12,7 @@ import org.apache.lucene.store.FSDirectory;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
public class LuceneFileSearchTest { public class LuceneFileSearchIntegrationTest {
@Test @Test
public void givenSearchQueryWhenFetchedFileNamehenCorrect() throws IOException, URISyntaxException { 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.Assert;
import org.junit.Test; import org.junit.Test;
public class LuceneInMemorySearchTest { public class LuceneInMemorySearchIntegrationTest {
@Test @Test
public void givenSearchQueryWhenFetchedDocumentThenCorrect() { public void givenSearchQueryWhenFetchedDocumentThenCorrect() {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,10 +1,15 @@
package com.baeldung.pattern.chainofresponsibility; package com.baeldung.chainofresponsibility;
import org.junit.Test; 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; import static org.junit.Assert.assertTrue;
public class ChainOfResponsibilityTest { public class ChainOfResponsibilityIntegrationTest {
private static AuthenticationProcessor getChainOfAuthProcessor() { private static AuthenticationProcessor getChainOfAuthProcessor() {

View File

@ -13,7 +13,7 @@ import java.util.List;
import static org.junit.Assert.*; import static org.junit.Assert.*;
public class CarEngineFacadeTest { public class CarEngineFacadeIntegrationTest {
private InMemoryCustomTestAppender appender; 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.Computer;
import com.baeldung.pattern.templatemethod.model.HighEndComputerBuilder; import com.baeldung.pattern.templatemethod.model.HighEndComputerBuilder;
@ -10,7 +10,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.instanceOf; import static org.hamcrest.CoreMatchers.instanceOf;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TemplateMethodPatternTest { public class TemplateMethodPatternIntegrationTest {
private static StandardComputerBuilder standardComputerBuilder; private static StandardComputerBuilder standardComputerBuilder;
private static HighEndComputerBuilder highEndComputerBuilder; private static HighEndComputerBuilder highEndComputerBuilder;

View File

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

View File

@ -7,7 +7,7 @@ import org.junit.Test;
import reactor.core.publisher.Flux; import reactor.core.publisher.Flux;
import reactor.test.StepVerifier; import reactor.test.StepVerifier;
public class CombiningPublishersTest { public class CombiningPublishersIntegrationTest {
private static Integer min = 1; private static Integer min = 1;
private static Integer max = 5; 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.assertFalse;
import static junit.framework.Assert.assertTrue; import static junit.framework.Assert.assertTrue;
public class ConnectableObservableTest { public class ConnectableObservableIntegrationTest {
@Test @Test
public void givenConnectableObservable_whenConnect_thenGetMessage() throws InterruptedException { 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.assertEquals;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
public class FlowableTest { public class FlowableIntegrationTest {
@Test public void whenFlowableIsCreated_thenItIsProperlyInitialized() { @Test public void whenFlowableIsCreated_thenItIsProperlyInitialized() {
Flowable<Integer> integerFlowable = Flowable.just(1, 2, 3, 4); 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.Flowable;
import io.reactivex.Maybe; import io.reactivex.Maybe;
public class MaybeTest { public class MaybeUnitTest {
@Test @Test
public void whenEmitsSingleValue_thenItIsObserved() { public void whenEmitsSingleValue_thenItIsObserved() {
Maybe<Integer> maybe = Flowable.just(1, 2, 3, 4, 5) 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 com.baeldung.rxjava.ObservableImpl.getTitle;
import static junit.framework.Assert.assertTrue; import static junit.framework.Assert.assertTrue;
public class ObservableTest { public class ObservableUnitTest {
private String result = ""; private String result = "";

View File

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

View File

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

View File

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

View File

@ -5,7 +5,7 @@ import rx.subjects.PublishSubject;
import static junit.framework.Assert.assertTrue; import static junit.framework.Assert.assertTrue;
public class SubjectTest { public class SubjectUnitTest {
@Test @Test
public void givenSubjectAndTwoSubscribers_whenSubscribeOnSubject_thenSubscriberBeginsToAdd() { 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 com.jayway.awaitility.Awaitility.await;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
public class UtilityOperatorsTest { public class UtilityOperatorsIntegrationTest {
private int emittedTotal = 0; private int emittedTotal = 0;
private int receivedTotal = 0; private int receivedTotal = 0;

View File

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

View File

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

View File

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

View File

@ -9,7 +9,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
public class ExceptionHandlingTest { public class ExceptionHandlingIntegrationTest {
private Error UNKNOWN_ERROR = new Error("unknown error"); private Error UNKNOWN_ERROR = new Error("unknown error");
private Exception UNKNOWN_EXCEPTION = new Exception("unknown exception"); 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; import static org.junit.Assert.assertTrue;
public class OnErrorRetryTest { public class OnErrorRetryIntegrationTest {
private Error UNKNOWN_ERROR = new Error("unknown error"); 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.List;
import java.util.Map; import java.util.Map;
public class RxAggregateOperatorsTest { public class RxAggregateOperatorsUnitTest {
@Test @Test
public void givenTwoObservable_whenConcatenatingThem_thenSuccessfull() { public void givenTwoObservable_whenConcatenatingThem_thenSuccessfull() {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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