我有一个简单的Junit测试班级 但我做出的注释是错误的
public class ConversationInfo {
private String idConversation;
public String getIdConversation() {
return idConversation;
}
public void setIdConversation(String idConversation) {
this.idConversation = idConversation;
}
}
每个人都可以提供帮助!
导入静态org.junit.jupiter.api.Assertions。*;
导入org.junit.jupiter.api.Test; 导入org.junit.jupiter.params.ParameterizedTest;
@Testable
public class ConversationInfoTest extends ConversationInfo {
public void testgetIdConversation() {
ConversationInfo con = new ConversationInfo ();
assertEquals("Nam Vu", con.getIdConversation());
}
}