Class StubQueryFilter

    • Constructor Detail

      • StubQueryFilter

        public StubQueryFilter​(List data)
        Creates a stub query that returns the given collections as the query result
        Parameters:
        data - - the stub query result
    • Method Detail

      • query

        public List query​(String queryStr)
                   throws Exception
        Returns the provided stub data as a stub query result
        Specified by:
        query in interface QueryFilter
        Parameters:
        queryStr - - not use
        Returns:
        the stub query result
        Throws:
        Exception
      • query

        public List query​(List queries)
                   throws Exception
        Returns the provided stub data as a stub query result
        Specified by:
        query in interface QueryFilter
        Parameters:
        queries - - not use
        Returns:
        the stub query result
        Throws:
        Exception