krysalis-version/src/test/org/krysalis/version/impl ImporterTests.java,1.1,1.2

[email protected] Tue, 25 Mar 2003 13:26:19 -0800
Newsgroups gmane.comp.krysalis.sandbox
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/krysalis-version/src/test/org/krysalis/version/impl
In directory sc8-pr-cvs1:/tmp/cvs-serv30568/src/test/org/krysalis/version/impl

Modified Files:
	ImporterTests.java 
Log Message:
buildDate

Index: ImporterTests.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/test/org/krysalis/version/impl/ImporterTests.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ImporterTests.java	25 Mar 2003 16:01:03 -0000	1.1
--- ImporterTests.java	25 Mar 2003 21:26:16 -0000	1.2
***************
*** 56,67 ****
  package org.krysalis.version.impl;
  
  import junit.framework.TestCase;
  
  import org.krysalis.version.exception.VersionException;
  import org.krysalis.version.impl.data.VersionData;
- import org.krysalis.version.impl.data.VersionDataElement;
- import org.krysalis.version.impl.data.VersionDataElementSet;
  import org.krysalis.version.specification.VersionSpecificationFactory;
- import org.krysalis.version.util.debug.DebugUtils;
  
  /**
--- 56,66 ----
  package org.krysalis.version.impl;
  
+ import java.util.Date;
+ 
  import junit.framework.TestCase;
  
  import org.krysalis.version.exception.VersionException;
  import org.krysalis.version.impl.data.VersionData;
  import org.krysalis.version.specification.VersionSpecificationFactory;
  
  /**
***************
*** 80,105 ****
      }
  
-     public void testDated() throws Exception {
-         String dated = "1"; //"02212003";
- 
-         test(
-             dated,
-             new KrysalisVersion(
-                 VersionIdentifier.BOGUS,
-                 VersionSpecificationFactory
-                     .createDatestampedVersionSpecification(),
-                 new VersionData(
-                     new VersionDataElementSet(
-                         VersionDataElement.ELEMENT_BUILD_NUMBER),
-                     VersionDataElement.UNSET_MAJOR,
-                     VersionDataElement.UNSET_MINOR,
-                     VersionDataElement.UNSET_RELEASE_LEVEL,
-                     VersionDataElement.UNSET_RELEASE_QUALIFIER,
-                     VersionDataElement.UNSET_POINT,
-                     1)));
-     }
- 
      public void testDated1() throws Exception {
!         String dated = "02212003";
  
          test(
--- 79,86 ----
      }
  
      public void testDated1() throws Exception {
!         String dated = "21022003";
! 
!         Date date = VersionImplementationConstants.DATE_FORMAT.parse(dated);
  
          test(
***************
*** 109,121 ****
                  VersionSpecificationFactory
                      .createDatestampedVersionSpecification(),
!                 new VersionData(
!                     new VersionDataElementSet(
!                         VersionDataElement.ELEMENT_BUILD_NUMBER),
!                     VersionDataElement.UNSET_MAJOR,
!                     VersionDataElement.UNSET_MINOR,
!                     VersionDataElement.UNSET_RELEASE_LEVEL,
!                     VersionDataElement.UNSET_RELEASE_QUALIFIER,
!                     VersionDataElement.UNSET_POINT,
!                     02212003)));
      }
  
--- 90,94 ----
                  VersionSpecificationFactory
                      .createDatestampedVersionSpecification(),
!                 new VersionData(date)));
      }
  
***************
*** 131,136 ****
                  versionString);
  
!         DebugUtils.dump("Imported Version : ", version);
!         DebugUtils.dump("Expected Version : ", expectedVersion);
  
          assertEquals("Expected Version", expectedVersion, version);
--- 104,109 ----
                  versionString);
  
!         //DebugUtils.dump("Imported Version : ", version);
!         //DebugUtils.dump("Expected Version : ", expectedVersion);
  
          assertEquals("Expected Version", expectedVersion, version);




-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en