Nice/src/nice/tools/testsuite TestSuite.java,1.16,1.17 TestCase.java,1.32,1.33 FailTestCase.java,1.13,1.14

Daniel Bonniot <[email protected]> Mon, 21 Mar 2005 21:26:06 +0000
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/src/nice/tools/testsuite
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21106/src/nice/tools/testsuite

Modified Files:
	TestSuite.java TestCase.java FailTestCase.java 
Log Message:
Added support for the no-location testcase keyword.


Index: TestSuite.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/testsuite/TestSuite.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** TestSuite.java	11 Jun 2003 18:15:53 -0000	1.16
--- TestSuite.java	21 Mar 2005 21:25:57 -0000	1.17
***************
*** 181,184 ****
--- 181,191 ----
  			}
  
+ 		boolean noLocation = false;
+ 		if (type.endsWith(" no-location"))
+ 			{
+ 				noLocation = true;
+ 				type = type.substring(0, type.length() - "no-location".length()).trim();
+ 			}
+ 
  		TestCase res;
  		if (TESTCASE_TYPE_PASS.equalsIgnoreCase(type))
***************
*** 191,194 ****
--- 198,202 ----
  		res.skip = skip;
  		res.isKnownBug = isKnownBug;
+ 		res.noLocation = noLocation;
  		return res;
  	}

Index: TestCase.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/testsuite/TestCase.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** TestCase.java	23 Feb 2005 16:58:09 -0000	1.32
--- TestCase.java	21 Mar 2005 21:25:57 -0000	1.33
***************
*** 101,104 ****
--- 101,105 ----
  	boolean isKnownBug;
  	boolean skip;
+ 	boolean noLocation;
  
  

Index: FailTestCase.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/testsuite/FailTestCase.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** FailTestCase.java	12 Mar 2005 10:41:37 -0000	1.13
--- FailTestCase.java	21 Mar 2005 21:25:57 -0000	1.14
***************
*** 43,47 ****
  			compilePackages();
  		} catch(TestSuiteException e) {
!       if (getFailPositions().isEmpty()) {
          TestNice.getOutput().log("warning", "Failure position not checked");
          warning();
--- 43,47 ----
  			compilePackages();
  		} catch(TestSuiteException e) {
!       if (! noLocation && getFailPositions().isEmpty()) {
          TestNice.getOutput().log("warning", "Failure position not checked");
          warning();



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click