Update of /cvsroot/metamorphosis/krysalis-version/src/test/org/krysalis/version/interfacing
In directory sc8-pr-cvs1:/tmp/cvs-serv20296/src/test/org/krysalis/version/interfacing
Modified Files:
InterfaceTest1.java
Log Message:
First stab at replacing Formats with Specifications for "non-Krysalis" formats.
Fixed some bugs via new tests.
Index: InterfaceTest1.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/test/org/krysalis/version/interfacing/InterfaceTest1.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** InterfaceTest1.java 6 Feb 2003 22:17:38 -0000 1.7
--- InterfaceTest1.java 10 Mar 2003 20:44:05 -0000 1.8
***************
*** 63,66 ****
--- 63,67 ----
import org.krysalis.version.Version;
import org.krysalis.version.exception.VersionException;
+ import org.krysalis.version.impl.KrysalisVersion;
import org.krysalis.version.internal.data.VersionData;
import org.krysalis.version.loading.VersionLoadContext;
***************
*** 77,82 ****
super(arg0);
}
!
! protected void compare(Object direct, VersionLoadContext context) throws VersionException {
//
//
--- 78,84 ----
super(arg0);
}
!
! protected void compare(Object direct, VersionLoadContext context)
! throws VersionException {
//
//
***************
*** 86,92 ****
Version version = context.getVersion();
assertNotNull("Version extracted", version);
! assertNotNull("VersionData extracted", new VersionData(version));
! compare(direct, new VersionData(version));
}
--- 88,98 ----
Version version = context.getVersion();
assertNotNull("Version extracted", version);
! assertNotNull(
! "VersionData extracted",
! KrysalisVersion.fromVersion(version).getVersionData());
! compare(
! direct,
! KrysalisVersion.fromVersion(version).getVersionData());
}
-------------------------------------------------------
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.