Class TestCheckProvider

java.lang.Object
com._1c.g5.v8.dt.testing.check.TestCheckProvider
All Implemented Interfaces:
ICheckProvider

public class TestCheckProvider extends Object implements ICheckProvider
Supports dynamic registration of test checks
  • Constructor Details

    • TestCheckProvider

      public TestCheckProvider()
  • Method Details

    • getCategories

      public Collection<INamedElement> getCategories()
      Description copied from interface: ICheckProvider
      Gets all registered categories, in form of the plain collection
      Specified by:
      getCategories in interface ICheckProvider
      Returns:
      The collection of registered categories. May not be null
    • getChecks

      public Collection<ICheckProvider.CheckInfo> getChecks()
      Description copied from interface: ICheckProvider
      Gets all registered checks paired with categories they are being registered in
      Specified by:
      getChecks in interface ICheckProvider
      Returns:
      The collection of check-category pairs. May not be null
    • registerCheck

      public ICheck registerCheck(Class<? extends AbstractTestCheck> checkClass, String checkId, String categoryId)
      Registers new testing ICheck
      Parameters:
      checkClass - implementation of testing ICheck, cannot be null
      checkId - unique testing check id, cannot be null
      categoryId - unique testing check category id, cannot be null
      Returns:
      registered ICheck, can be null if object by checkClass was not created
    • registerCheck

      public void registerCheck(ICheck check, String categoryId)
      Registers new testing ICheck
      Parameters:
      checkId - unique testing check id, cannot be null
      categoryId - unique testing check category id, cannot be null