ruper2/src/java/test/core/org/krysalis/ruper/protocols VirtualResourceLocatorTests.java,1.2,1.3

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

Modified Files:
	VirtualResourceLocatorTests.java 
Log Message:
Added equals method

Index: VirtualResourceLocatorTests.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/test/core/org/krysalis/ruper/protocols/VirtualResourceLocatorTests.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** VirtualResourceLocatorTests.java	29 Aug 2003 22:17:38 -0000	1.2
--- VirtualResourceLocatorTests.java	16 Sep 2003 13:50:40 -0000	1.3
***************
*** 47,50 ****
--- 47,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) {
  		junit.textui.TestRunner.run(VirtualResourceLocatorTests.class);




-------------------------------------------------------
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.