基于 JUnit 单元测试框架,Arquillian Core 1.0.2.Final
jopen 12年前
<p>单元测试框架 Arquillian 今天发布了 1.0 的第二个维护版本 1.0.2.Final,Arquillian 可让你在远程或者嵌入式的容器里测试业务逻辑,同时可作为一个压缩包发布到容器中,并通过客户端来进行交互测试。</p> <img title="Arquillian logo" alt="单元测试框架,Arquillian Core 1.0.2.Final" src="https://simg.open-open.com/show/1c6a5ed5a2fdfa6b259d58ea1b450612.gif" width="90" height="90" /> <p><a href="/misc/goto?guid=4958342640891626807" target="_blank">Arquillian </a>是一个可以方便的在现有类基础性扩展测试用例,基于 JUnit 。</p> <pre class="brush:java; toolbar: true; auto-links: false;">@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); } }</pre> <p></p> <p>该版本主要改进内容包括:</p> <div id="OSChina_News_31342" class="NewsContent TextContent NewsType1"> <dt> Enhancement </dt> <ul class="unstyled"> <li><a href="/misc/goto?guid=4958349369554433748">ARQ-920</a> - Support @Deployment on non-public member (method or field)</li> <li><a href="/misc/goto?guid=4958349370350635792">ARQ-921</a> - Make environment variables available for property replacement in configuration</li> </ul> <p>Feature Request</p> <ul class="unstyled"> <li><a href="/misc/goto?guid=4958349371148969545">ARQ-990</a> - Update dependencies to simplify downstream Fedora Packaging</li> <li><a href="/misc/goto?guid=4958349371949013584">ARQ-1024</a> - Support package private implementation</li> <li><a href="/misc/goto?guid=4958349372748248013">ARQ-1035</a> - Should support enriching a specific module in a multi module deployment</li> </ul> <p>Bug</p> <ul class="unstyled"> <li><a href="/misc/goto?guid=4958349373557087559">ARQ-376</a> - Environment configuration is overridden by arquillian.xml</li> <li><a href="/misc/goto?guid=4958349374346466448">ARQ-620</a> - arquillian-core-impl-base needs a non-optional dependency on jboss-logmanager</li> </ul> <p>Task</p> <ul class="unstyled"> <li><a href="/misc/goto?guid=4958349375140179151">ARQ-956</a> - Remove dependency on jboss-logging in JMX protocol</li> </ul> </div>