No classloader issue, just me being unable to read 'name of the data-type'.
git-svn-id: https://svn.apache.org/repos/asf/ant/sandbox/antlibs/antunit/trunk@209304 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d521b765bb
commit
3b7ee9a084
|
|
@ -440,11 +440,11 @@
|
|||
|
||||
<h3>Examples</h3>
|
||||
|
||||
<p>Make the build fail if Ant's current Executor is not of type
|
||||
org.apache.tools.ant.helper.DefaultExecutor:</p>
|
||||
<p>Make the build fail if the reference <em>classpath</em> has not
|
||||
been set or doesn't point to a <path>.</p>
|
||||
|
||||
<pre>
|
||||
<assertReferenceIsType name="ant.executor" type="org.apache.tools.ant.helper.DefaultExecutor"/>
|
||||
<assertReferenceIsType refid="classpath" type="path"/>
|
||||
</pre>
|
||||
|
||||
<h2><a name="assertLogContains">assertLogContains</a></h2>
|
||||
|
|
|
|||
|
|
@ -167,15 +167,15 @@
|
|||
|
||||
<target name="assertReferenceIsTypePass">
|
||||
<path id="foo3"/>
|
||||
<au:assertReferenceIsType refid="foo3" type="org.apache.tools.ant.types.Path"/>
|
||||
<au:assertReferenceIsType refid="foo3" type="path"/>
|
||||
</target>
|
||||
|
||||
<target name="assertReferenceIsTypeFailNotSet">
|
||||
<au:assertReferenceIsType refid="foo4" type="org.apache.tools.ant.types.Path"/>
|
||||
<au:assertReferenceIsType refid="foo4" type="path"/>
|
||||
</target>
|
||||
|
||||
<target name="assertReferenceIsTypeFailWrongType">
|
||||
<path id="foo5"/>
|
||||
<au:assertReferenceIsType refid="foo5" type="org.apache.tools.ant.types.FileSet"/>
|
||||
<au:assertReferenceIsType refid="foo5" type="fileset"/>
|
||||
</target>
|
||||
</project>
|
||||
|
|
|
|||
|
|
@ -71,8 +71,7 @@ public class AssertTest extends BuildFileTest {
|
|||
public void testReferenceSetPass() {
|
||||
testPass("assertReferenceSetPass");
|
||||
}
|
||||
// fails, probably due to classloader issues
|
||||
public void NotestReferenceIsTypePass() {
|
||||
public void testReferenceIsTypePass() {
|
||||
testPass("assertReferenceIsTypePass");
|
||||
}
|
||||
|
||||
|
|
@ -133,7 +132,7 @@ public class AssertTest extends BuildFileTest {
|
|||
}
|
||||
public void testReferenceIsTypeFailWrongType() {
|
||||
testFail("assertReferenceIsTypeFailWrongType",
|
||||
"Expected reference 'foo5' to be a 'org.apache.tools.ant.types.FileSet'");
|
||||
"Expected reference 'foo5' to be a 'fileset'");
|
||||
}
|
||||
|
||||
private void testPass(String target) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue