Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

TB3TestSuite.java 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright 2000-2016 Vaadin Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.vaadin.tests.tb3;
  17. import java.io.IOException;
  18. import org.junit.runners.model.InitializationError;
  19. import com.vaadin.testbench.parallel.ParallelTestSuite;
  20. /**
  21. * Test suite which consists of all the TB3 tests passed in the constructor.
  22. * Runs the tests in parallel using a {@link ParallelScheduler}
  23. *
  24. * @author Vaadin Ltd
  25. */
  26. public class TB3TestSuite extends ParallelTestSuite {
  27. public TB3TestSuite(Class<?> klass,
  28. Class<? extends AbstractTB3Test> baseClass, String basePackage,
  29. String[] ignorePackages) throws InitializationError, IOException {
  30. this(klass, baseClass, basePackage, ignorePackages,
  31. new TB3TestLocator());
  32. }
  33. public TB3TestSuite(Class<?> klass,
  34. Class<? extends AbstractTB3Test> baseClass, String basePackage,
  35. String[] ignorePackages, TB3TestLocator locator)
  36. throws InitializationError, IOException {
  37. super(klass, locator.findClasses(baseClass, basePackage, ignorePackages)
  38. .toArray(new Class<?>[] {}));
  39. }
  40. }