All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bndly.testfixture.api.TestFixtureService Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2012, cyber:con GmbH, Bonn.
 *
 * All rights reserved. This source file is provided to you for
 * documentation purposes only. No part of this file may be
 * reproduced or copied in any form without the written
 * permission of cyber:con GmbH. No liability can be accepted
 * for errors in the program or in the documentation or for damages
 * which arise through using the program. If an error is discovered,
 * cyber:con GmbH will endeavour to correct it as quickly as possible.
 * The use of the program occurs exclusively under the conditions
 * of the licence contract with cyber:con GmbH.
 */
package org.bndly.testfixture.api;

/*-
 * #%L
 * Test Fixture Resource
 * %%
 * Copyright (C) 2013 - 2020 Cybercon GmbH
 * %%
 * 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.
 * #L%
 */

import org.bndly.schema.fixtures.api.FixtureDeploymentException;
import org.bndly.testfixture.model.TestFixture;
import java.io.Writer;
import java.util.Set;

/**
 * Service for TestFixture Delegation to the Backend Repository.
 */
public interface TestFixtureService {
	String NAME = "testFixtureService";
	
	void doEstablishTestFixture(TestFixture testFixture) throws FixtureDeploymentException;
	
	/**
	 * Gets a DBUnit FlatXmlDataSet as a String that represents the current Test Fixture.
	 * 
	 * @return DataSet as a String
	 */
	String getCurrentTestFixture(String schemaName) throws FixtureDeploymentException;
	
	void writeCurrentTestFixture(String schemaName, Writer writer) throws FixtureDeploymentException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy