org.deephacks.tools4j.config.test.bean.BeanManagerTestSuiteBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tools4j-config-tck Show documentation
Show all versions of tools4j-config-tck Show documentation
Functional Tests for Tools4j Config
/**
* 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.
*/
package org.deephacks.tools4j.config.test.bean;
import java.util.ArrayList;
import java.util.List;
import org.deephacks.tools4j.config.spi.BeanManager;
import org.deephacks.tools4j.config.test.FeatureTestsBuilder;
/**
* Creates a JUnit test suite that test a bean manager implementation.
*/
public class BeanManagerTestSuiteBuilder extends FeatureTestsBuilder {
public static BeanManagerTestSuiteBuilder named(String name) {
BeanManagerTestSuiteBuilder builder = new BeanManagerTestSuiteBuilder();
builder.name = name;
return builder;
}
public BeanManagerTestSuiteBuilder using(BeanManager manager) {
using(BeanManager.class, manager);
return this;
}
@Override
protected List> getTests() {
List> tests = new ArrayList>();
tests.add(BeanManagerDeleteTests.class);
tests.add(BeanManagerCreateTests.class);
tests.add(BeanManagerSetTests.class);
tests.add(BeanManagerGetTests.class);
tests.add(BeanManagerListTests.class);
return tests;
}
}