git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270977 13f79535-47bb-0310-9956-ffa450edef68master
@@ -1,32 +0,0 @@ | |||||
/* | |||||
* Copyright (C) The Apache Software Foundation. All rights reserved. | |||||
* | |||||
* This software is published under the terms of the Apache Software License | |||||
* version 1.1, a copy of which has been included with this distribution in | |||||
* the LICENSE.txt file. | |||||
*/ | |||||
package org.apache.antlib.selftest; | |||||
import org.apache.myrmidon.api.AbstractTask; | |||||
import org.apache.myrmidon.api.TaskException; | |||||
/** | |||||
* This is to test whether adders with just a type (and no name) work. | |||||
* | |||||
* @author <a href="mailto:peter@apache.org">Peter Donald</a> | |||||
* @ant:task name="typed-adder-test" | |||||
*/ | |||||
public class TypedAdderTest | |||||
extends AbstractTask | |||||
{ | |||||
public void add( final Integer value ) | |||||
{ | |||||
//Should fail as value is not an interface | |||||
getLogger().warn( "Integer add: " + value ); | |||||
} | |||||
public void execute() | |||||
throws TaskException | |||||
{ | |||||
} | |||||
} |
@@ -7,6 +7,5 @@ | |||||
<task name="content-test" classname="org.apache.antlib.selftest.ContentTest" /> | <task name="content-test" classname="org.apache.antlib.selftest.ContentTest" /> | ||||
<task name="file-manip-test" classname="org.apache.antlib.selftest.FileManipulationTest" /> | <task name="file-manip-test" classname="org.apache.antlib.selftest.FileManipulationTest" /> | ||||
<task name="extensions-test" classname="org.apache.antlib.selftest.ExtensionsTest" /> | <task name="extensions-test" classname="org.apache.antlib.selftest.ExtensionsTest" /> | ||||
<task name="typed-adder-test" classname="org.apache.antlib.selftest.TypedAdderTest" /> | |||||
</types> | </types> | ||||
</ant-lib> | </ant-lib> |