package pt.fccn.arquivo.tests;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

import pt.fccn.arquivo.pages.Arcproxyinspection;
import pt.fccn.arquivo.pages.IndexPage;
import pt.fccn.saw.selenium.WebDriverTestBaseParalell;
import pt.fccn.saw.selenium.Retry;



/**
 * @author nutchwax
 *
 */
public class TestArcproxy extends WebDriverTestBaseParalell{
    public TestArcproxy(String os, String version, String browser, String deviceName, String deviceOrientation) {
            super(os, version, browser, deviceName, deviceOrientation);
    }
	@Test
	@Retry
	public void TestArcproxy() {
		System.out.print("Running TestArcproxy. \n");
		IndexPage index = new IndexPage(driver);
		Arcproxyinspection arcproxy = index.arcProxy(isPreProd);

		try {
			assertTrue("There are problems in the coherence of ArcProxy ",arcproxy.inspectArcproxy(false));
			assertTrue("The date of archived pages are not the same before perfomed ",arcproxy.inspectArcproxy(true));
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
}



@@ -288,47 +288,8 @@
 %0D%0A%0D%0A
-%0D%0A%0D%0A/**%0D%0A * @author nutchwax%0D%0A *%0D%0A */%0D%0A
 publ
@@ -343,23 +343,21 @@
 Paralell
+ 
 %7B%0D%0A
-    
+%09
 public T
@@ -463,20 +463,10 @@
  %7B%0D%0A
-            
+%09%09
 supe
@@ -526,13 +526,12 @@
 );%0D%0A
-    %7D
+%09%7D%0D%0A
 %0D%0A%09@
@@ -558,17 +558,17 @@
 ic void 
-T
+t
 estArcpr
@@ -580,57 +580,8 @@
  %7B%0D%0A
-%09%09System.out.print(%22Running TestArcproxy. %5Cn%22);%0D%0A
 %09%09In
@@ -686,18 +686,8 @@
 %0D%0A%0D%0A
-%09%09try %7B%0D%0A%09
 %09%09as
@@ -746,16 +746,17 @@
 Proxy %22,
+ 
 arcproxy
@@ -782,17 +782,16 @@
 lse));%0D%0A
-%09
 %09%09assert
@@ -858,16 +858,17 @@
 fomed %22,
+ 
 arcproxy
@@ -897,74 +897,11 @@
 );%0D%0A
-%09%09%7D catch (Exception e) %7B%0D%0A%09%09%09e.printStackTrace();%0D%0A%09%09%7D%0D%0A%0D%0A
 %09%7D%0D%0A%7D%0D%0A
-%0D%0A%0D%0A

Improve code style on test arc proxy