/*
 * Copyright 2010 James Pether Sörling
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 *	$Id$
 *  $HeadURL$
 */
package com.hack23.cia.service.data.impl;

import org.junit.Ignore;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.hack23.cia.model.external.riksdagen.documentcontent.impl.DocumentContentData;
import com.hack23.cia.model.external.riksdagen.dokumentlista.impl.DocumentElement;
import com.hack23.cia.model.external.riksdagen.dokumentstatus.impl.DocumentStatusContainer;
import com.hack23.cia.model.external.riksdagen.person.impl.PersonData;
import com.hack23.cia.model.external.riksdagen.utskottsforslag.impl.CommitteeProposalData;
import com.hack23.cia.model.internal.application.system.impl.ApplicationActionEvent;
import com.hack23.cia.model.internal.application.system.impl.ApplicationSession;
import com.hack23.cia.service.data.api.DataViewer;
import com.hack23.cia.service.data.api.RemoveDataManager;

/**
 * The Class RemoveDataManagerITest.
 */
public final class RemoveDataManagerITest extends AbstractServiceDataFunctionalIntegrationTest {

	/** The remove data manager. */
	@Autowired
	private RemoveDataManager removeDataManager;

	/** The data viewer. */
	@Autowired
	private DataViewer dataViewer;


	/**
	 * Removes the person data test.
	 */
	@Test
	@Ignore
	public void removePersonDataTest() {
		removeDataManager.removePersonData();
		assertEquals("Expect no data",0,dataViewer.getAll(PersonData.class).size());

	}

	/**
	 * Removes the committee proposals test.
	 */
	@Test
	@Ignore
	void removeCommitteeProposalsTest() {
		removeDataManager.removeCommitteeProposals();
		assertEquals("Expect no data",0,dataViewer.getAll(CommitteeProposalData.class).size());
	}

	/**
	 * Removes the document status test.
	 */
	@Test
	@Ignore
	void removeDocumentStatusTest() {
		removeDataManager.removeDocumentStatus();
		assertEquals("Expect no data",0,dataViewer.getAll(DocumentStatusContainer.class).size());

	}

	/**
	 * Removes the documents test.
	 */
	@Test
	@Ignore
	void removeDocumentsTest() {
		removeDataManager.removeDocuments();
		assertEquals("Expect no data",0,dataViewer.getAll(DocumentElement.class).size());
		assertEquals("Expect no data",0,dataViewer.getAll(DocumentContentData.class).size());
	}

	/**
	 * Removes the application history test.
	 */
	@Test
	@Ignore
	void removeApplicationHistoryTest() {
		removeDataManager.removeApplicationHistory();
		assertEquals("Expect no data",0,dataViewer.getAll(ApplicationActionEvent.class).size());
		assertEquals("Expect no data",0,dataViewer.getAll(ApplicationSession.class).size());

	}

}

@@ -2066,32 +2066,39 @@
 @Test%0A%09@Ignore%0A%09
+public 
 void removeCommi
@@ -2111,32 +2111,32 @@
 oposalsTest() %7B%0A
-
 %09%09removeDataMana
@@ -2318,32 +2318,39 @@
 @Test%0A%09@Ignore%0A%09
+public 
 void removeDocum
@@ -2559,32 +2559,39 @@
 @Test%0A%09@Ignore%0A%09
+public 
 void removeDocum
@@ -2886,17 +2886,24 @@
 @Ignore%0A
-
 %09
+public 
 void rem

fix test