# HG changeset patch # User Jaroslav Tulach # Date 1222662679 -7200 # Node ID d907b216f8a16937d0f779715c5ce7e41e171c93 # Parent 1ca35892ef26c5a91b3c742c5050ccb052fc8543 Base for the taskx - the verification infrastructure diff -r 1ca35892ef26 -r d907b216f8a1 taskx/common.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/taskx/common.properties Mon Sep 29 06:31:19 2008 +0200 @@ -0,0 +1,5 @@ + +# location to root of the repository with apifest projects +apifest=${ant.file.common}/../../ +# and where is junit? +junit.jar=${apifest}/libs/junit-4.4.jar diff -r 1ca35892ef26 -r d907b216f8a1 taskx/common.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/taskx/common.xml Mon Sep 29 06:31:19 2008 +0200 @@ -0,0 +1,105 @@ + + + + Builds the test against first version and runs them against two + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 1ca35892ef26 -r d907b216f8a1 taskx/jtulach/against-solutionXY/build.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/taskx/jtulach/against-solutionXY/build.xml Mon Sep 29 06:31:19 2008 +0200 @@ -0,0 +1,5 @@ + + + + + diff -r 1ca35892ef26 -r d907b216f8a1 taskx/jtulach/against-solutionXY/nbproject/project.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/taskx/jtulach/against-solutionXY/nbproject/project.xml Mon Sep 29 06:31:19 2008 +0200 @@ -0,0 +1,82 @@ + + + org.netbeans.modules.ant.freeform + + + + testing template + + build.xml + ../../../ + project.properties + ${apifest}/taskx/common.properties + + + + + java + test + + + + + + compile + + + + clean + + + + test + + + + test + + + + clean + compile + + + + folder + build/tests + + compile + + + + + + test + + + ${ant.script} + + + project.properties + + + + + + + + + + + + + + + test + ${apiA}:${junit.jar} + build/tests + 1.5 + + + + diff -r 1ca35892ef26 -r d907b216f8a1 taskx/jtulach/against-solutionXY/project.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/taskx/jtulach/against-solutionXY/project.properties Mon Sep 29 06:31:19 2008 +0200 @@ -0,0 +1,16 @@ + +# name of a project to test +#apitotest=todo:specify_this_property_in:project.properties +#for example use: +apitotest=solution01 + +# the test shall expose a problem between two versions +# of one API. select the first version - taskA and a second +# version of the of the API taskB +taskA=${apifest}/task1 +taskB=${apifest}/task2 + +# usual locations of API classes for each version +apiA=${taskA}/${apitotest}/build/classes/ +apiB=${taskB}/${apitotest}/build/classes/ + diff -r 1ca35892ef26 -r d907b216f8a1 taskx/jtulach/against-solutionXY/test/apifest/CurrencyTest.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/taskx/jtulach/against-solutionXY/test/apifest/CurrencyTest.java Mon Sep 29 06:31:19 2008 +0200 @@ -0,0 +1,17 @@ +package apifest; + +import junit.framework.TestCase; +import org.apidesign.apifest08.currency.Convertor; + + +/** Write a test that works with version from task A and fails with version B. + */ +public class CurrencyTest extends TestCase { + public CurrencyTest(String n) { + super(n); + } + + public void testCompatibility() throws Exception { + Convertor c = null; + } +}