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

org.bndly.testfixture.impl.NoopTestFixtureServiceImpl 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.impl;

/*-
 * #%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 org.bndly.testfixture.api.TestFixtureService;
import java.io.Writer;

/**
 * Dummy implementation to resolve Spring IoC to a type in case integration-test profile IS NOT active.
 */
public class NoopTestFixtureServiceImpl implements TestFixtureService {

	@Override
	public void doEstablishTestFixture(TestFixture testFixture) throws FixtureDeploymentException {
	}

	@Override
	public String getCurrentTestFixture(String schemaName) throws FixtureDeploymentException {
		return null;
	}

	@Override
	public void writeCurrentTestFixture(String schemaName, Writer writer) throws FixtureDeploymentException {
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy