Skip to content

Commit 3ba1939

Browse files
authored
Merge branch 'master' into BAEL-9018
2 parents aeb1711 + aad613a commit 3ba1939

12 files changed

Lines changed: 22 additions & 22 deletions

File tree

animal-sniffer-mvn-plugin/src/test/java/com/baeldung/AppTest.java renamed to animal-sniffer-mvn-plugin/src/test/java/com/baeldung/AppUnitTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
/**
88
* Unit test for simple App.
99
*/
10-
public class AppTest
10+
public class AppUnitTest
1111
extends TestCase
1212
{
1313
/**
1414
* Create the test case
1515
*
1616
* @param testName name of the test case
1717
*/
18-
public AppTest( String testName )
18+
public AppUnitTest( String testName )
1919
{
2020
super( testName );
2121
}
@@ -25,7 +25,7 @@ public AppTest( String testName )
2525
*/
2626
public static Test suite()
2727
{
28-
return new TestSuite( AppTest.class );
28+
return new TestSuite( AppUnitTest.class );
2929
}
3030

3131
/**

guest/log4j2-example/src/test/java/com/stackify/services/MyServiceTest.java renamed to guest/log4j2-example/src/test/java/com/stackify/services/MyServiceUnitTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
import com.stackify.models.User;
1919
import com.stackify.services.MyService;
2020

21-
public class MyServiceTest {
21+
public class MyServiceUnitTest {
2222

23-
private static final Logger logger = LogManager.getLogger(MyServiceTest.class);
23+
private static final Logger logger = LogManager.getLogger(MyServiceUnitTest.class);
2424

2525
@Test
2626
public void testService() {

guest/logback-example/src/test/java/com/stackify/services/EmployeeServiceTest.java renamed to guest/logback-example/src/test/java/com/stackify/services/EmployeeServiceUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import ch.qos.logback.classic.Level;
1111

12-
public class EmployeeServiceTest {
12+
public class EmployeeServiceUnitTest {
1313
private static final Logger logger = LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
1414

1515
private EmployeeService employeeService = new EmployeeService();

guest/webservices/rest-server/src/test/java/com/stackify/services/UserServiceTest.java renamed to guest/webservices/rest-server/src/test/java/com/stackify/services/UserServiceLiveTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import static io.restassured.RestAssured.*;
77
import static org.hamcrest.CoreMatchers.*;
88

9-
public class UserServiceTest {
9+
public class UserServiceLiveTest {
1010
@Test
1111
public void whenAddUser_thenGetUserOk() {
1212
RestAssured.baseURI = "http://localhost:8080/rest-server";

java-difference-date/src/test/java/com/baeldung/DateDiffTest.java renamed to java-difference-date/src/test/java/com/baeldung/DateDiffUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import static org.junit.Assert.assertEquals;
1616

17-
public class DateDiffTest {
17+
public class DateDiffUnitTest {
1818
@Test
1919
public void givenTwoDatesBeforeJava8_whenDifferentiating_thenWeGetSix() throws ParseException {
2020
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy", Locale.ENGLISH);

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,8 +1081,8 @@
10811081
<!-- <module>libraries</module> <module>jmeter</module> -->
10821082
<!--<module>java-dates</module> --> <!-- Commented because we have still not upgraded to java 9 -->
10831083
<module>java-websocket</module>
1084-
<!-- <module>activejdbc</module> --><!-- PMD voilation -->
1085-
<!-- <module>animal-sniffer-mvn-plugin</module> --><!-- PMD voilation -->
1084+
<module>activejdbc</module>
1085+
<module>animal-sniffer-mvn-plugin</module>
10861086
<!-- <module>apache-avro</module> --><!-- Malformed POM -->
10871087
<module>apache-bval</module>
10881088
<module>apache-shiro</module>
@@ -1134,8 +1134,8 @@
11341134
<!-- <module>graphql/graphql-java</module> --><!-- Wrong parent -->
11351135
<!-- <module>guest/deep-jsf</module> --><!-- guest post on different site -->
11361136
<!-- <module>guest/junit5-example</module> --><!-- guest post on different site - Compilation failure -->
1137-
<!-- <module>guest/log4j2-example</module> --><!-- PMD voilation -->
1138-
<!-- <module>guest/logback-example</module> --><!-- PMD voilation -->
1137+
<!-- <module>guest/log4j2-example</module> --><!-- guest post on different site -->
1138+
<!-- <module>guest/logback-example</module> --><!-- guest post on different site -->
11391139
<!-- <module>guest/memory-leaks</module> --><!-- guest post on different site -->
11401140
<!-- <module>guest/remote-debugging</module> --><!-- guest post on different site -->
11411141
<!-- <module>guest/spring-boot-app</module> --><!-- guest post on different site -->

rest-with-spark-java/src/test/java/com/baeldung/AppTest.java renamed to rest-with-spark-java/src/test/java/com/baeldung/AppLiveTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
import junit.framework.TestCase;
1717
import junit.framework.TestSuite;
1818

19-
public class AppTest extends TestCase {
19+
public class AppLiveTest extends TestCase {
2020

2121
ObjectMapper mapper = new ObjectMapper();
2222

23-
public AppTest( String testName ) {
23+
public AppLiveTest( String testName ) {
2424
super( testName );
2525
}
2626

2727
public static Test suite() {
28-
return new TestSuite( AppTest.class );
28+
return new TestSuite( AppLiveTest.class );
2929
}
3030

3131
public void testApp() throws IOException, ClassNotFoundException {

spring-groovy/src/test/java/com/baeldug/groovyconfig/GroovyConfigurationTest.java renamed to spring-groovy/src/test/java/com/baeldug/groovyconfig/GroovyConfigurationUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import org.junit.Test;
88
import org.springframework.context.support.GenericGroovyApplicationContext;
99

10-
public class GroovyConfigurationTest {
10+
public class GroovyConfigurationUnitTest {
1111

1212
private static final String FILE_NAME = "GroovyBeanConfig.groovy";
1313
private static final String FILE_PATH = "src/main/java/com/baeldug/groovyconfig/";

spring-groovy/src/test/java/com/baeldug/groovyconfig/JavaConfigurationTest.java renamed to spring-groovy/src/test/java/com/baeldug/groovyconfig/JavaConfigurationUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.junit.Test;
66
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
77

8-
public class JavaConfigurationTest {
8+
public class JavaConfigurationUnitTest {
99

1010
@Test
1111
public void whenJavaConfig_thenCorrectPerson() {

spring-groovy/src/test/java/com/baeldug/groovyconfig/XmlConfigurationTest.java renamed to spring-groovy/src/test/java/com/baeldug/groovyconfig/XmlConfigurationUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import org.springframework.context.ApplicationContext;
77
import org.springframework.context.support.ClassPathXmlApplicationContext;
88

9-
public class XmlConfigurationTest {
9+
public class XmlConfigurationUnitTest {
1010

1111
@Test
1212
public void whenXmlConfig_thenCorrectPerson() {

0 commit comments

Comments
 (0)