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