Jacoco is a Java Code Coverage statistics tool, see: http://www.eclemma.org/jacoco/
Jacoco is a free Code coverage library for Java, which has been created from the Eclemma team based on the lessons learned F Rom using and integration existing libraries for many years.
In the last section we briefly introduced what Rapid-generate can do, and demonstrated the test code with the tool, which we will apply to our project in conjunction with MySQL.
Step One: new Java Project Project, Copy the Generate.xml files and template folders in the Rapid-generate, and introduce the 3 jar packages on which you rely, Freemarker.jar,mysql-connec
Original address: http://blog.csdn.net/jinzhuojun/article/details/8868038 debugging Android Java source codeThe back garden of the straw hat--neoWritten in the previous words: Here is mainly to debug Java source code, should be said to be in the system_process after the source, which for debugging and modification frameworks layer of people is really a weapon, bu
Java was originally designed to collect statistics on the number of Java code lines written in its own code lines. The function is very simple. It provides a file path and counts the total number of lines of code, comment lines, empty lines, and so on.
Implementation: Typica
1. Open various System Tools2. Timed shutdown (reboot, sleep not implemented, please refer to the above two articles to expand themselves)3. Simple File operation
Copy Code code as follows:
[Java]
Package com.cxy.f;
Import Java.awt.Image;
Import Java.awt.MenuItem;
Import Java.awt.PopupMenu;
Import Java.awt.SystemTray;
Import Java.awt.Toolkit;
) { Pattern p = pattern.compile ("^[0-9]{11}$"); Matcher m = p.matcher (value); Boolean IsOK = M.find (); return IsOK; }4. Create a random numberpublic static int Buildrandom (int length) {int num = 1;double random = Math.random (); if (Random 5. Get the model, browser type public static String Gettypeas (httpservletrequest request) { string typeas= request.getheader ("User-agent" ); if (Typeas.equals ("") | | Typeas==null) {typeas= "nothing";} return typeas; }5. Get the IP
In the past, we used the underlying C-API of each database as wrapping to realize the function of data import and export between several heterogeneous databases. However, the code is complex and it is inconvenient to open source.
In the afternoon, a simple data extraction program was written in Java to port the MySQL database to Sybase ASE. Put it open-source, put it on: http://code.google.com/p/jmyetl/ to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.