第四步,運(yùn)行測試代碼:按照上述代碼修改完畢后,我們?cè)贑alculatorTest類上點(diǎn)右鍵,選擇“Run As à JUnit Test”來運(yùn)行我們的測試,如下圖所示: