Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

TB3TestSuite.java 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright 2000-2014 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
  38. .findClasses(baseClass, basePackage, ignorePackages).toArray(
  39. new Class<?>[] {}));
  40. }
  41. }