我刚刚创建了这个单元测试,我得到了一个红色的波浪线@Test
,上面写着“预期的注释类型”。这是什么意思?
package com.sample.bank.account;
import junit.framework.Test;
import static org.junit.Assert.*;
public class LoanTest {
@Test
public void testAppliyPaymentSubtractsCorrectAmount()
{
Loan loan = new Loan("test subtract", 1000);
loan.applyPayment(100);
assertEquals(900, loan.getBalance());
}
}