package com.specmate.test.integration.support;

import java.util.Collection;

import com.specmate.common.SpecmateException;
import com.specmate.connectors.api.IExportService;
import com.specmate.connectors.api.IProject;
import com.specmate.connectors.api.IRequirementsSource;
import com.specmate.model.base.IContainer;
import com.specmate.model.requirements.Requirement;

public class DummyProject implements IProject {
	private String projectName;
	
	public DummyProject(String projectName) {
		this.projectName = projectName;
	}
	
	@Override
	public String getName() {
		return this.projectName;
	}

	@Override
	public IRequirementsSource getConnector() {
		return new IRequirementsSource() {
			
			@Override
			public Collection<Requirement> getRequirements() throws SpecmateException {
				return null;
			}
			
			@Override
			public String getId() {
				return null;
			}
			
			@Override
			public IContainer getContainerForRequirement(Requirement requirement) throws SpecmateException {
				return null;
			}
			
			@Override
			public boolean authenticate(String username, String password) throws SpecmateException {
				return true;
			}
		};
	}

	@Override
	public IExportService getExporter() {
		return null;
	}

}

@@ -363,16 +363,75 @@
 irement;
+%0Aimport com.specmate.model.testspecification.TestProcedure;
 %0A%0Apublic
@@ -501,18 +501,17 @@
 ctName;%0A
-%09
 %0A
+
 %09public 
@@ -582,18 +582,17 @@
 ame;%0A%09%7D%0A
-%09
 %0A
+
 %09@Overri
@@ -745,20 +745,17 @@
 rce() %7B%0A
-%09%09%09
 %0A
+
 %09%09%09@Over
@@ -852,36 +852,33 @@
 turn null;%0A%09%09%09%7D%0A
-%09%09%09
 %0A
+
 %09%09%09@Override%0A%09%09%09
@@ -915,36 +915,33 @@
 turn null;%0A%09%09%09%7D%0A
-%09%09%09
 %0A
+
 %09%09%09@Override%0A%09%09%09
@@ -1063,12 +1063,9 @@
 %09%09%7D%0A
-%09%09%09
 %0A
+
 %09%09%09@
@@ -1260,15 +1260,266 @@
 rn n
-ull;%0A%09%7D%0A
+ew IExportService() %7B%0A%0A%09%09%09@Override%0A%09%09%09public boolean isAuthorizedToExport(String username, String password) %7B%0A%09%09%09%09return false;%0A%09%09%09%7D%0A%0A%09%09%09@Override%0A%09%09%09public void export(TestProcedure testProcedure) throws SpecmateException %7B%0A%09%09%09%09// Nothing to do%0A%09%09%09%7D%0A%09%09%7D;%0A%09%7D
 %0A%7D%0A

Fix integration tests