Skip to content

Commit

Permalink
#24921 adding query and working on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyDotcms committed Jul 7, 2023
1 parent f99dc7f commit bd2e09e
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -86,7 +86,13 @@ public void test_findLiveAndStopped_shouldOnlyRetunLiveAndStoppedSites() throws

}

// test the method search at class HostFactoryImpl where the filter is "test.com" and should return it first in list
/**
* Method to test: {@link HostFactoryImpl#search(String, String, boolean, int, int, User, boolean)}
* Given Scenario: Create many (20+) sites that have the same text in them
* example1.test.com, example2.test.com..., then just test.com
* ExpectedResult: Exact matches should be at the top of the search results.
*
*/
@Test
public void test_search_shouldReturnExactMatchesFirst() throws DotDataException, DotSecurityException {
// Initialization
Expand Down

0 comments on commit bd2e09e

Please sign in to comment.