archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From och...@apache.org
Subject svn commit: r530373 - /maven/archiva/trunk/archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/AbstractArchivaTestCase.java
Date Thu, 19 Apr 2007 10:49:02 GMT
Author: oching
Date: Thu Apr 19 03:49:01 2007
New Revision: 530373

URL: http://svn.apache.org/viewvc?view=rev&rev=530373
Log:
MRM-316 Created tests for archiva webapp Settings

Modified:
    maven/archiva/trunk/archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/AbstractArchivaTestCase.java

Modified: maven/archiva/trunk/archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/AbstractArchivaTestCase.java
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/AbstractArchivaTestCase.java?view=diff&rev=530373&r1=530372&r2=530373
==============================================================================
--- maven/archiva/trunk/archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/AbstractArchivaTestCase.java
(original)
+++ maven/archiva/trunk/archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/AbstractArchivaTestCase.java
Thu Apr 19 03:49:01 2007
@@ -60,16 +60,17 @@
 
     public void assertHeader()
     {
-        assertTrue( "banner is missing" , getSelenium().isElementPresent( "xpath=//div[@id='banner']"
) );
-        assertTrue( "bannerLeft is missing" , getSelenium().isElementPresent( "xpath=//div[@id='banner']"
+
-            "/span[@id='bannerLeft']" ) );
-        assertTrue( "bannerLeft link is missing" , getSelenium().isElementPresent( "xpath=//div[@id='banner']"
+
-            "/span[@id='bannerLeft']/a[@href='http://maven.apache.org/archiva/']" ) );
-        assertTrue( "bannerLeft img is missing" , getSelenium().isElementPresent( "xpath=//div[@id='banner']"
+
-            "/span[@id='bannerLeft']/a[@href='http://maven.apache.org/archiva/']" +
-            "/img[@src='" + getWebContext() + "/images/archiva.png']" ) );
+        assertTrue( "banner is missing", getSelenium().isElementPresent( "xpath=//div[@id='banner']"
) );
+        assertTrue( "bannerLeft is missing",
+                    getSelenium().isElementPresent( "xpath=//div[@id='banner']" + "/span[@id='bannerLeft']"
) );
+        assertTrue( "bannerLeft link is missing", getSelenium().isElementPresent(
+            "xpath=//div[@id='banner']" + "/span[@id='bannerLeft']/a[@href='http://maven.apache.org/archiva/']"
) );
+        assertTrue( "bannerLeft img is missing", getSelenium().isElementPresent( "xpath=//div[@id='banner']"
+
+            "/span[@id='bannerLeft']/a[@href='http://maven.apache.org/archiva/']" + "/img[@src='"
+ getWebContext() +
+            "/images/archiva.png']" ) );
 
-        assertTrue( "bannerRight is missing",  getSelenium().isElementPresent( "xpath=//div[@id='banner']/span[@id='bannerRight']"
) );
+        assertTrue( "bannerRight is missing",
+                    getSelenium().isElementPresent( "xpath=//div[@id='banner']/span[@id='bannerRight']"
) );
     }
 
     protected String getTitlePrefix()



Mime
View raw message