Java third-party library ecosystem is a very broad category. Someone wrote a few moments ago: 11 Java third-party class libraries that you have to know about each project.
Unit Test
1.DBUnit
Dbunit is a junit extension-based database testing framework. It provides a number of classes that abstract and encapsulate database-related operations.
2.MOckito
Mockito is a mocking framework for Java. You can write beautiful tests using a simple API.
3.Hamcrest matchers
Hamcrest is a test aid that provides a common set of match-Matcher, with the flexibility to use the rules defined by these match characters, and allows programmers to express their own test ideas more precisely and specify the test conditions they want to set.
JUNIT4 combined with Hamcrest provides a new assertion statement-assertthat, which requires only a assertthat statement, combined with the matching character provided by Hamcrest, to express all the test ideas.
Apache Commons
4.Configuration
This tool is used to help with configuration files and supports a variety of storage methods
5.DbUtils
Dbutils database operations can be made into a single package, simplifying database operations.
6.IO
Can be seen as an extension of java.io. It provides the ability to read files, as well as some of the methods used, similar to dbutils.
7.Lang
If you're going to ask me which library I have on this list, I'll tell you it's Lang or Google collections. Lang can be seen as an extension of java.lang, providing tools such as StringUtils, Stringescapeutils, Randomstringutils, Tokenizer, and Wordutils.
Comer
8.slf4j
SLF4J is a simple and unified interface for various loging APIs, enabling end users to configure their desired loging APIs at deployment time. SLF4J are similar to Apache common-logging and log4j, but slf4j are superior to them.
9.Google Collections
The Java Collection Framework is one of the most frequently used parts of the Java class Library, and the Google Collections Library is a new set of Java collection frameworks developed by Google based on the Java5.0 collections framework. Provides an API for some advanced collection operations.
10.c3p0
C3P0 is an open source JDBC connection pool that is distributed with Hibernate, which is located in the Lib directory. Includes DataSources objects for the connection and statement pools that implement the JDBC3 and JDBC2 extension specification descriptions.
11.Joda time
Joda time is a powerful and easy-to-use day and date library that completely replaces the Jdkdate and calendar classes.
Do you have a better recommendation? Share with everyone ...
In each project, you must know the 11 Java third-party class libraries.