package org.ale.thot.selenium;

import org.apache.commons.lang3.StringUtils;
import org.junit.After;
import org.junit.Before;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public abstract class AbstractPageTest {

	private static String serverUrl = "http://localhost:9080/thot";
	private static final String SYSTEM_PROPERTY = "server.url";
	private String baseUrl;
	
	protected WebDriver driver;
	protected String PAGE_TITLE = "Open Space Software Development - ALE 2014";
	
	@Before
	public void setUp() {
		driver = new FirefoxDriver();
		baseUrl = System.getProperty(SYSTEM_PROPERTY);
		if (StringUtils.isEmpty(baseUrl)) {
			baseUrl = serverUrl;
		}
	}

	@After
	public void tearDownWebDriver() {
		driver.close();
	}

	protected void open(String url) {
		driver.navigate().to(baseUrl + url);
	}

}
@@ -483,50 +483,35 @@
  = %22
-Open Space Software Development - ALE
+Hackerspace - JavaLand
  201
-4
+5
 %22;%0D%0A

update spring version, update jsp messages, replace ALE