Class BaseContext

    • Constructor Summary

      Constructors 
      Constructor Description
      BaseContext()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void before()  
      protected <T extends ItemModel>
      java.util.Collection<T>
      findAll​(java.lang.Class<T> type)
      Retrieves all model items existing in the persistent storage.
      FlexibleSearchService flexibleSearch()  
      protected <T> T getService​(java.lang.String name, java.lang.Class<T> type)  
      ModelService modelService()  
      protected <T extends ItemModel>
      void
      removeAll​(java.lang.Class<T> type)  
      • Methods inherited from class org.junit.rules.ExternalResource

        after, apply
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseContext

        public BaseContext()
    • Method Detail

      • getService

        protected <T> T getService​(java.lang.String name,
                                   java.lang.Class<T> type)
      • before

        public void before()
        Overrides:
        before in class org.junit.rules.ExternalResource
      • removeAll

        protected <T extends ItemModel> void removeAll​(java.lang.Class<T> type)
      • findAll

        protected <T extends ItemModel> java.util.Collection<T> findAll​(java.lang.Class<T> type)
        Retrieves all model items existing in the persistent storage.
        Returns:
        a collection of all items or an empty collection, if there are no items in the persistent storage.