-
Spring Batch unit test example
In this tutorial, we will show you how to unit test Spring batch jobs with jUnit and TestNG frameworks. To unit test batch job, declares spring-batch-test.jar, @autowired the JobLauncherTestUtils, launch the job or step, and assert the execution status.
Date: 2019-08-18 View: 1520
-
NoSuchBeanDefinitionException : No qualifying bean of type JobLauncherTestUtils
Following the official Spring batch unit testing guide to create a standard unit test case.
Date: 2019-08-18 View: 1520
-
Ant and TestNG Task example
In this tutorial, we will show you how to run a TestNG test in Ant build.
Date: 2019-08-18 View: 1520
-
Gradle How to skip unit test
Be default, Gradle build is abort if any unit tests is failed. Oftentimes, we still need to build the project even the unit test is failed.
Date: 2019-08-18 View: 1520
-
TestNG Groups Test
In this tutorial, we will show you how to do the group testing in TestNG.
Date: 2019-08-17 View: 1520
-
TestNG + Spring Integration Example
In this tutorial, we will show you how to test Spring’s components with TestNG.
Date: 2019-08-17 View: 1520
-
TestNG Hello World Example
A classic example, show you how to get started with TestNG unit test framework.
Date: 2019-08-17 View: 1520
-
Java Custom Annotations Example
In this tutorial, we will show you how to create two custom annotations – @Test and @TestInfo, to simulate a simple unit test framework.
Date: 2019-08-17 View: 1520
-
TestNG + Selenium Load Testing Example
In this tutorial, we will show you how to use @Test attributes invocationCount and threadPoolSize to perform a load test or stress test on a website.
Date: 2019-08-17 View: 1520
-
Must include junit.jar if not in Ants own classpath
Declares a junit task in Ant like this
Date: 2019-08-17 View: 1520
-
Ant and jUnit Task example
In this tutorial, we will show you how to run a junit test in Ant build.
Date: 2019-08-17 View: 1520
-
Gradle Display test results in Console
By default, the test result will not display in the console.
Date: 2019-08-17 View: 1520
-
Gradle How to continue build if test is failed
By default, the Gradle build process will be stopped and failed if any unit test is failed.
Date: 2019-08-17 View: 1520
-
Gradle How to exclude some tests
In this tutorial, we will show you a few examples to exclude some tests in Gradle. Review the following two unit test classes
Date: 2019-08-17 View: 1520
-
Logback Disable logging in Unit Test
While the unit test is running in the IDE, the Logback is showing a lot of configuration or status like this :
Date: 2019-08-17 View: 1520