#globalnavbar("table")
Log In   View a printable version of the current page. Get help from the Confluence website.
Added by Brandon Philips, last edited by Brandon Philips on Sep 29, 2005  (view change)
Labels: 
(None)

Using JUnitEE in the Ockham registry has been discussed but there is no convincing reason to use it yet.

web.xml
...
    <servlet>
        <servlet-name>JUnitEETestServlet</servlet-name>
        <description>JUnitEE test runner</description>
        <servlet-class>org.junitee.servlet.JUnitEEServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>JUnitEETestServlet</servlet-name>
        <url-pattern>/test/TestServlet/*</url-pattern>
    </servlet-mapping>
...
test.jsp
<%--
  Created by IntelliJ IDEA.
  User: philips
  Date: Sep 22, 2005
  Time: 11:48:48 AM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<body>
<p>
	You may type in the name of a test suite:
	<br/>
	<form action="TestServlet" method="get" name="youTypeItForm">
		<input type="text" name="suite" size=60 />
		<input type="submit" value="Run" />
	</form>
</p>
<hr/>
<p>
	You may pick one or more of the following test suites:
	<br/>
	<form action="TestServlet" method="get" name="youPickItForm">
		<select name="suite" size="2" multiple>
			<option value="test.org.osuosl.ockham.registry.RegistryTests">
				  test.org.osuosl.ockham.registry.RegistryTests
			</option>
		</select>
		<input type="submit" value="Run" />
	</form>
</p>
</body>
</html>

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.7 Build:#524 Jul 28, 2006) - Bug/feature request - Contact Administrators