基本介紹
- 外文名:Arquillian
- 基於:JUnit
- 互動測試:客戶端
- 屬性:測試業務邏輯
示例代碼
@RunWith(org.jboss.arquillian.junit.Arquillian.class)
public class TemperatureConverterTestCase {
@Deployment
public static JavaArchive createTestArchive() {
return Archives.create("test.jar", JavaArchive.class)
.addClasses(TemperatureConverter.class, TemperatureConverterBean.class);
}
}