package com.exedio.copernica;

import net.sourceforge.jwebunit.WebTestCase;

public class AbstractWebTest extends WebTestCase
{

	public AbstractWebTest(String name)
	{
		super(name);
	}

	public void setUp() throws Exception
	{
		super.setUp();
		getTestContext().setBaseUrl("http://127.0.0.1:8080/copetest-hsqldb/");
		beginAt("admin.jsp");
		submit("CREATE");
	}
	
	public void tearDown() throws Exception
	{
		beginAt("admin.jsp");
		submit("DROP");
		super.tearDown();
	}
	
}

@@ -24,16 +24,61 @@
 rnica;%0A%0A
+import net.sourceforge.jwebunit.TestContext;%0A
 import n
@@ -286,16 +286,40 @@
 Up();%0A%09%09
+final TestContext ctx = 
 getTestC
@@ -326,16 +326,23 @@
 ontext()
+;%0A%09%09ctx
 .setBase
@@ -388,16 +388,58 @@
 ldb/%22);%0A
+%09%09ctx.setAuthorization(%22admin%22, %22nimda%22);%0A
 %09%09beginA

fix web tests: include authorization