ruper2/src/test/ant/org/krysalis/ruper2/ant/task anttasks.xml,NONE,1.1 AntTasksTests.java,NONE,1.1 RepositoryToolTaskTests.java,NONE,1.1 SynchronizeTaskTests.java,NONE,1.1 reposync.xml,1.3,1.4 SynchronizeTaskTest.java,1.4,NONE RepositoryToolTaskTest.java,1.1,NONE

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/test/ant/org/krysalis/ruper2/ant/task
In directory sc8-pr-cvs1:/tmp/cvs-serv16302/src/test/ant/org/krysalis/ruper2/ant/task

Modified Files:
	reposync.xml 
Added Files:
	anttasks.xml AntTasksTests.java RepositoryToolTaskTests.java 
	SynchronizeTaskTests.java 
Removed Files:
	SynchronizeTaskTest.java RepositoryToolTaskTest.java 
Log Message:
Attempt to bring closer to working w/ Anou's API.

--- NEW FILE: anttasks.xml ---
<?xml version="1.0"?>
<project name="ruper-repotool-test" basedir="." default="all">
	<typedef resource="krysalis-ruper2-types"/>	
	<taskdef resource="krysalis-ruper2-tasks"/>	
		
	<target name="typical">
		
		<reposync group="junit" />
		<reposync group="log4j" />
		<reposync group="jxpath" />
		
		<repotool repositories="lib"/>
	</target>
	
	<target name="all" depends="typical" />
</project>
--- NEW FILE: AntTasksTests.java ---
/*
 * Created on Sep 11, 2003
 */
package org.krysalis.ruper2.ant.task;

import org.apache.tools.ant.BuildFileTest;

/**
 * 
 * @author $Author: arb_jack $
 * @version $Revision: 1.1 $
 */
public class AntTasksTests extends BuildFileTest {

	/**
	 * Constructor for RuperDependTaskTest.
	 * @param arg0
	 */
	public AntTasksTests(String arg0) {
		super(arg0);
	}

	public static void main(String[] args) {
		junit.textui.TestRunner.run(AntTasksTests.class);
	}

	public void setUp() {
		configureProject("src/test/ant/org/krysalis/ruper2/ant/task/anttasks.xml");
	}

	public void test1() {
		executeTarget("typical");
	}
	
}
--- NEW FILE: RepositoryToolTaskTests.java ---
/*
 * Created on Sep 11, 2003
 */
package org.krysalis.ruper2.ant.task;

import org.apache.tools.ant.BuildFileTest;

/**
 * 
 * @author $Author: arb_jack $
 * @version $Revision: 1.1 $
 */
public class RepositoryToolTaskTests extends BuildFileTest {

	/**
	 * Constructor for RuperDependTaskTest.
	 * @param arg0
	 */
	public RepositoryToolTaskTests(String arg0) {
		super(arg0);
	}

	public static void main(String[] args) {
		junit.textui.TestRunner.run(RepositoryToolTaskTests.class);
	}

	public void setUp() {
		configureProject("src/test/ant/org/krysalis/ruper2/ant/task/repotool.xml");
	}

	public void test1() {
		executeTarget("test1");
	}

	public void test2() {
		executeTarget("test2");
	}
}
--- NEW FILE: SynchronizeTaskTests.java ---
/*
 * Created on Sep 11, 2003
 */
package org.krysalis.ruper2.ant.task;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.BuildFileTest;

/**
 * 
 * @author $Author: arb_jack $
 * @version $Revision: 1.1 $
 */
public class SynchronizeTaskTests extends BuildFileTest {

	/**
	 * Constructor for RuperDependTaskTest.
	 * @param arg0
	 */
	public SynchronizeTaskTests(String arg0) {
		super(arg0);
	}

	public static void main(String[] args) {
		junit.textui.TestRunner.run(SynchronizeTaskTests.class);
	}

	public void setUp() {
		configureProject("src/test/ant/org/krysalis/ruper2/ant/task/reposync.xml");
	}

	public void test1() {
		executeTarget("test1");
	}

	public void test2() {
		executeTarget("test2");
	}

	public void test3() {
		boolean passed = false;
		try {
			executeTarget("test3");
		}
		catch (BuildException be) {
			passed = true;
		}

		if (!passed)
			fail("Should've complained about no arguments...");
	}
}
Index: reposync.xml
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/test/ant/org/krysalis/ruper2/ant/task/reposync.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** reposync.xml	9 Oct 2003 13:35:21 -0000	1.3
--- reposync.xml	10 Oct 2003 21:26:24 -0000	1.4
***************
*** 11,15 ****
  		<reposync group="test" />
  	</target>
  	
! 	<target name="all" depends="test1,test2" />
  </project>
--- 11,20 ----
  		<reposync group="test" />
  	</target>
+ 		
+ 	<target name="test3">
+ 		<!-- Intended to fail w/ "no args" message -->
+ 		<reposync />
+ 	</target>
  	
! 	<target name="all" depends="test1,test2,test3" />
  </project>

--- SynchronizeTaskTest.java DELETED ---

--- RepositoryToolTaskTest.java DELETED ---




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.