Junity testing the maximum number of substrings and Java programs

Source: Internet
Author: User

1 , Java installation and configuration of the environment:

Installation of JDK:

JDK Download Link: http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html

Install the basic default:

After installing the configuration environment variables:

1, the installation path of JAVA_HOME:JDK

2, PATH:JDK path/bin;jre path/bin;

Open command Line Input java–version if the installation is successful, you can view the version information of the installed JDK, or you will be prompted with an error

2. Use of Eclipse:

Eclipse does not need to be installed, it can be extracted directly.

Open the application to:

The first opening will make workspace: the location where the program is stored.

New---->other

The rest is basically the default when you create a Java Project Project entry name:

New Package packages under SRC (not recommended to build Java programs directly under SRC), then build Java program New->.class

Write Java program:

Add JUnit Libraries: Right-click Build Pathàadd librariesàjunit and then always default:

In the Java program, right-click the Newàjunit test case and select the class method to generate the test program automatically.

Codeing.net's Link: https://coding.net/u/zhaoyao666

Junity testing the maximum number of substrings and Java programs

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.