Eclipseはよくショートカットキーを使います。debugデバッグブレークポイントとJunnitテストフレームは小記を使います。

1862 ワード

/**
 *     Eclipse     
 *  1.debug    : 
 *   F5:     (Step Into)。 
 *   F6:       (Step Over)。
 *   F7:           (Step Return:  )。             (watch)     。
 *   Drop to Frame:        。
 *   resume:       (         ,        )。
 *   Breakpoints:            (         )。
 * 
 * 2.Eclipse      :
 * Alt + /(    )。
 * Ctrl + 1(    )。
 * Ctrl + Shift + o (    )。
 * Ctrl + Shift + f (    )。
 * Alt + →(       )
 * Ctrl + Shift + X (   )
 * Ctrl + Shift + Y (   )
 * Alt +     (    )
 * Ctrl + t (       ,       )
 * Ctrl + Shift + t (   )
 * Ctrl + Shift + L (        )
 * @author    
 */
public class ITest {
public static void main(String[] args) {
System.out.println("hello Java!");
}
}
二、Junnitまとめ:
package com.java.a;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
/**
 * Junit  :  Junit jar 
 * @author   
 */
public class IJunit {
	
	private Employee employee;
	
	/**
	 *        ,     
	 */
	@BeforeClass
	public static void beforeClass(){
		System.out.println("beforeClass!");
	}
	
	@Before
	public void before(){
		System.out.println("         !");
		System.out.println("1.         。");
		System.out.println("2.      ");
		employee = new Employee();
	}

	@Test
	public void testOne() {
		Employee employee = new Employee();
		System.out.println(employee);
		//  :(   ,   )-->true or false
		Assert.assertEquals("object", employee); //        
	}
	
	@Test
	public void testTwo() {
		
		System.out.println(employee);
	}
	
	@After
	public void after(){
		System.out.println("        !    !");
		employee = null;
	}
	
	/**
	 *         ,     
	 */
	@AfterClass
	public static void afterClass(){
		System.out.println("afterClass!");
	}

}