File tree Expand file tree Collapse file tree
animal-sniffer-mvn-plugin/src/test/java/com/baeldung
log4j2-example/src/test/java/com/stackify/services
logback-example/src/test/java/com/stackify/services
webservices/rest-server/src/test/java/com/stackify/services
java-difference-date/src/test/java/com/baeldung
rest-with-spark-java/src/test/java/com/baeldung
spring-groovy/src/test/java/com/baeldug
static-analysis/src/test/java/com/baeldung/pmd Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 /**
Original file line number Diff line number Diff line change 1818import com .stackify .models .User ;
1919import 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 () {
Original file line number Diff line number Diff line change 99
1010import 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 ();
Original file line number Diff line number Diff line change 66import static io .restassured .RestAssured .*;
77import 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" ;
Original file line number Diff line number Diff line change 1414
1515import 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 );
Original file line number Diff line number Diff line change 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 >
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 -->
Original file line number Diff line number Diff line change 1616import junit .framework .TestCase ;
1717import 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 {
Original file line number Diff line number Diff line change 77import org .junit .Test ;
88import 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/" ;
Original file line number Diff line number Diff line change 55import org .junit .Test ;
66import org .springframework .context .annotation .AnnotationConfigApplicationContext ;
77
8- public class JavaConfigurationTest {
8+ public class JavaConfigurationUnitTest {
99
1010 @ Test
1111 public void whenJavaConfig_thenCorrectPerson () {
Original file line number Diff line number Diff line change 66import org .springframework .context .ApplicationContext ;
77import org .springframework .context .support .ClassPathXmlApplicationContext ;
88
9- public class XmlConfigurationTest {
9+ public class XmlConfigurationUnitTest {
1010
1111 @ Test
1212 public void whenXmlConfig_thenCorrectPerson () {
You can’t perform that action at this time.
0 commit comments