krysalis-version/src/test/org/krysalis/version/sample FilenameExtractorTests.java,1.3,1.4

[email protected]
Newsgroups gmane.comp.krysalis.sandbox
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/krysalis-version/src/test/org/krysalis/version/sample
In directory sc8-pr-cvs1:/tmp/cvs-serv20296/src/test/org/krysalis/version/sample

Modified Files:
	FilenameExtractorTests.java 
Log Message:
First stab at replacing Formats with Specifications for "non-Krysalis" formats.
Fixed some bugs via new tests.

Index: FilenameExtractorTests.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/test/org/krysalis/version/sample/FilenameExtractorTests.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** FilenameExtractorTests.java	11 Feb 2003 23:46:20 -0000	1.3
--- FilenameExtractorTests.java	10 Mar 2003 20:44:20 -0000	1.4
***************
*** 77,86 ****
      }
  
!     public void testSimple1() throws VersionFormatException {
  
          test("foo", new KrysalisVersion(TEST_ID));
      }
  
!     public void testSimple2() throws VersionFormatException {
  
          test("foo.jar", new KrysalisVersion(TEST_ID));
--- 77,86 ----
      }
  
!     public void testSimple1() throws VersionFormatException, VersionException {
  
          test("foo", new KrysalisVersion(TEST_ID));
      }
  
!     public void testSimple2() throws VersionFormatException, VersionException {
  
          test("foo.jar", new KrysalisVersion(TEST_ID));
***************
*** 93,97 ****
  
      private void test(String filename, Version expectedResult)
!         throws VersionFormatException {
          Version v =
              FilenameExtractor.filenameVersionExtractor(TEST_ID, filename);
--- 93,97 ----
  
      private void test(String filename, Version expectedResult)
!         throws VersionFormatException, VersionException {
          Version v =
              FilenameExtractor.filenameVersionExtractor(TEST_ID, filename);




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
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.