/*******************************************************************************
 * Copyright (c) 2017 University of Stuttgart.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * and the Apache License 2.0 which both accompany this distribution,
 * and are available at http://www.eclipse.org/legal/epl-v10.html
 * and http://www.apache.org/licenses/LICENSE-2.0
 *
 * Contributors:
 *     Niko Stadelmaier - initial API and implementation
 *******************************************************************************/
package org.eclipse.winery.repository.resources.servicetemplates.selfserviceportal;

import org.eclipse.winery.repository.resources.AbstractResourceTest;

import org.junit.Test;


public class XMLTest extends AbstractResourceTest{

	@Test
	public void getXML() throws Exception {
		this.setRevisionTo("3fe0df76e98d46ead68295920e5d1cf1354bdea1");
		this.assertGet("servicetemplates/http%253A%252F%252Fwinery.opentosca.org%252Ftest%252Fservicetemplates%252Ffruits/baobab_serviceTemplate/selfserviceportal/xml","entitytypes/servicetemplates/selfserviceportal/getXML.xml");
	}

	@Test
	public void putXML() throws Exception {
		this.setRevisionTo("3fe0df76e98d46ead68295920e5d1cf1354bdea1");
		this.assertPut("servicetemplates/http%253A%252F%252Fwinery.opentosca.org%252Ftest%252Fservicetemplates%252Ffruits/baobab_serviceTemplate/selfserviceportal/", "entitytypes/servicetemplates/selfserviceportal/putXML.xml");
		this.assertGet("servicetemplates/http%253A%252F%252Fwinery.opentosca.org%252Ftest%252Fservicetemplates%252Ffruits/baobab_serviceTemplate/selfserviceportal/xml","entitytypes/servicetemplates/selfserviceportal/getAfterPut.xml");
	}

}

@@ -786,17 +786,16 @@
 .Test;%0A%0A
-%0A
 public c
@@ -835,16 +835,17 @@
 urceTest
+ 
 %7B%0A%0A%09@Tes
@@ -1107,32 +1107,33 @@
 viceportal/xml%22,
+ 
 %22entitytypes/ser
@@ -1680,16 +1680,17 @@
 al/xml%22,
+ 
 %22entityt
@@ -1751,11 +1751,10 @@
 l%22);%0A%09%7D%0A
-%0A
 %7D%0A

fix code style