albert's blog
Showing posts with label
JUnit
.
Show all posts
Showing posts with label
JUnit
.
Show all posts
2020/12/01
[Java] [JUnit] [SpringBoot] How to assign active profile in unit test?
›
Requirement If I have multiple profiles in Spring Boot project, how to assign specific profile in my unit test program? How-To Added @Activ...
2017/10/04
How to Improve Code Coverage in Enumeration Type ?
›
Problem Assume I have a enumeration as bellows: package albert.practice.designPattern.factory ; public enum ShapeEnum { CIRCLE , ...
2017/08/10
How to Improve Code Coverage After Using Apache Lombok?
›
Problem After using Project Lombok, we can find out it help use reduce our boilerplate code. 1 2 3 4 5 6 7 8 9 10 11 12 13 14...
2017/06/08
[Eclipse] EclEmma - Java Code Coverage for Eclipse
›
In computer science, code coverage is a measure used to describe the degree to which the source code of a program is executed when a particu...
2014/12/09
How to mock autowired fields via Mockito
›
Problem Assume we wrote a calculation service which provide add and subtract service. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17...
2014/11/07
JUnit Quick Start
›
Assume I has one utility class, which provide some services, including find employee name, find all employees, etc. 1 2 3 4 5 6 7 ...
2008/06/29
Applied MyEclipse and JUnit to do Hibernate Code Gen and Testing
›
• Hibernate Code Generation • Code Gen Process • Generate DAO for the four tables • Artifacts • Spring Configuration File • Apply JUnit to ...
›
Home
View web version