ruper2/src/test/core/org/krysalis/ruper2/util/net VirtualResourceLocatorTests.java,1.1,1.2

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/test/core/org/krysalis/ruper2/util/net
In directory sc8-pr-cvs1:/tmp/cvs-serv25339/src/test/core/org/krysalis/ruper2/util/net

Modified Files:
	VirtualResourceLocatorTests.java 
Log Message:
Opps, did it for HTTP input but not File input. Added that.

Index: VirtualResourceLocatorTests.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/test/core/org/krysalis/ruper2/util/net/VirtualResourceLocatorTests.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** VirtualResourceLocatorTests.java	9 Oct 2003 16:02:22 -0000	1.1
--- VirtualResourceLocatorTests.java	9 Oct 2003 21:14:58 -0000	1.2
***************
*** 12,16 ****
  
  import org.krysalis.ruper2.protocols.Protocol;
! import org.krysalis.version.util.SystemUtils;
  
  /**
--- 12,16 ----
  
  import org.krysalis.ruper2.protocols.Protocol;
! import org.krysalis.ruper2.util.io.ResolvedFile;
  
  /**
***************
*** 40,44 ****
  	public void testVRLToFromFile() throws Exception {
  		VirtualResourceLocator vrl =
! 			new VirtualResourceLocator(SystemUtils.getCWD());
  
  		assertEquals(
--- 40,44 ----
  	public void testVRLToFromFile() throws Exception {
  		VirtualResourceLocator vrl =
! 			new VirtualResourceLocator(ResolvedFile.resolve("."));
  
  		assertEquals(
***************
*** 48,68 ****
  	}
  
!     public void testEquals() {
!         VirtualResourceLocator vrlFileA =
!             new VirtualResourceLocator(SystemUtils.getCWD());
!         VirtualResourceLocator vrlFileB =
!             new VirtualResourceLocator(SystemUtils.getCWD());
  
!         assertEquals("Virtual resource locators constructed from same file should be equal",
!                                 vrlFileA, vrlFileB);
  
!         VirtualResourceLocator vrlUrlA =
!             new VirtualResourceLocator(m_mavenUrl);
!         VirtualResourceLocator vrlUrlB =
!             new VirtualResourceLocator(m_mavenUrl);
  
!         assertEquals("Virtual resource locators constructed from same url should be equal",
!                                 vrlUrlA, vrlUrlB);
!     }
  
  	public static void main(String[] args) {
--- 48,70 ----
  	}
  
! 	public void testEquals() {
! 		VirtualResourceLocator vrlFileA =
! 			new VirtualResourceLocator(ResolvedFile.resolve("."));
! 		VirtualResourceLocator vrlFileB =
! 			new VirtualResourceLocator(ResolvedFile.resolve("."));
  
! 		assertEquals(
! 			"Virtual resource locators constructed from same file should be equal",
! 			vrlFileA,
! 			vrlFileB);
  
! 		VirtualResourceLocator vrlUrlA = new VirtualResourceLocator(m_mavenUrl);
! 		VirtualResourceLocator vrlUrlB = new VirtualResourceLocator(m_mavenUrl);
  
! 		assertEquals(
! 			"Virtual resource locators constructed from same url should be equal",
! 			vrlUrlA,
! 			vrlUrlB);
! 	}
  
  	public static void main(String[] args) {




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
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.