Java Fundamentals 1

Source: Internet
Author: User

1, myelicpse common shortcut keys

Content Assist: Alt +/

Quick FIX: Ctrl + 1

Guide Pack: Ctrl + SHIFT + O

Format code block: CTRL + SHIFT + F---> Configure code Automatic Formatting

Add (remove) block comment ctrl+shift+/(ctrl+shift+\)

Add (remove) a single-line comment ctrl+/

Move code: Select line ALT + up/down

Delete Row: Ctrl+d

View class source code: CTRL + LEFT mouse button/F3 (FOCUS)

To view class inheritance relationships: F4 (Focus)

2. Unit Test

Add @Test on the method you want to test.

runtime, run as-------JUnit Test

Red----Failer Green----success

Note: The method being tested cannot have parameters and has a return value.

@Before @After is the method that each @test method executes after executing it before execution.

@BeforeClass @AfterClass can only modify the static method

@BeforeClass executed once before all test methods

@ Execute once after all test methods

Focus: @Test

Java Fundamentals 1

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.