Eclipseã§JUnit4ã使ã£ã¦ã¿ãã¨ããã£ããé¢åã ã¨æã£ã¦ãã¾ããããã¯ãEclipseã®é常ã«ä¾¿å©ãªimportèªåç·¨ææ©è½ï¼Ctrl+Shift+Oï¼ã¨ãJava5ããå°å ¥ãããstatic importã¨ã®ç¸æ§ãæªãããã ããã¨ãã°ãJUnit4ã使ã£ã¦ã import static org.junit.Assert.*; import static org.hamcrest.Matchers.*; ・・・ä¸ç¥ï½¥ï½¥ï½¥ @Test public void onePlusOneEqualsTwo() { int sum = 1 + 1; assertThat(sum, is(equalTo(2))); }ã¨ãããã¹ããæ¸ãã¦ãã¦ããªã«ãå¥ã®ã¯ã©ã¹ã使ããã¨ãã¦ããããã«ãCtrl+Shift+Oããæ¼ãã¨ãstatic importã®é¨åã以ä¸ã®ããã«å±éããã¦ãã¾ãã impo
{{#tags}}- {{label}}
{{/tags}}