Skip to content

Commit

Permalink
removed usages of keyword param in SvcSearchTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Shalev-Lifshitz committed Dec 5, 2021
1 parent 7620d4a commit f20dff5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/java/tech/autodirect/api/services/SvcSearchTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class SvcSearchTest {
@Test
void testSearchCarsAllNull() {
try {
List<EntCar> carsResult = svcSearch.searchCars("null", "null", "null", "null", "null", "null");
List<EntCar> carsResult = svcSearch.searchCars("null", "null", "null", "null", "null");
assert carsResult.size() > 0;
} catch (IOException | InterruptedException | SQLException e) {
e.printStackTrace();
Expand All @@ -37,7 +37,7 @@ void testSearchCarsAllNull() {
@Test
void testSearchCarsAllEmpty() {
try {
List<EntCar> carsResult = svcSearch.searchCars("", "", "", "", "", "");
List<EntCar> carsResult = svcSearch.searchCars("", "", "", "", "");
assert carsResult.size() > 0;
} catch (IOException | InterruptedException | SQLException e) {
e.printStackTrace();
Expand All @@ -48,7 +48,7 @@ void testSearchCarsAllEmpty() {
@Test
void testSearchCarsRandomStrings() {
try {
List<EntCar> carsResult = svcSearch.searchCars("xyz", "xyz", "xyz", "xyz", "xyz", "");
List<EntCar> carsResult = svcSearch.searchCars("xyz", "xyz", "xyz", "xyz", "xyz");
assert carsResult.size() > 0;
} catch (IOException | InterruptedException | SQLException e) {
e.printStackTrace();
Expand All @@ -59,7 +59,7 @@ void testSearchCarsRandomStrings() {
@Test
void testSearchCarsSomeNull() {
try {
List<EntCar> carsResult = svcSearch.searchCars("null", "1000", "null", "price", "true", "");
List<EntCar> carsResult = svcSearch.searchCars("null", "1000", "null", "price", "true");
assert carsResult.size() > 0;
} catch (IOException | InterruptedException | SQLException e) {
e.printStackTrace();
Expand All @@ -71,7 +71,7 @@ void testSearchCarsSomeNull() {
void testSearchCarsPostLogin() {
try {
tableUser.addUser(testUserId, 700, 1000, 200);
List<EntCar> carsResult = svcSearch.searchCars(testUserId, "1000", "200", "price", "true", "");
List<EntCar> carsResult = svcSearch.searchCars(testUserId, "1000", "200", "price", "true");
assert carsResult.size() > 0;
} catch (IOException | InterruptedException | SQLException e) {
e.printStackTrace();
Expand All @@ -83,7 +83,7 @@ void testSearchCarsPostLogin() {
void testSearchCarsPostLoginBadSortBy() {
try {
tableUser.addUser(testUserId, 700, 1000, 200);
List<EntCar> carsResult = svcSearch.searchCars(testUserId, "1000", "200", "xyz", "true", "");
List<EntCar> carsResult = svcSearch.searchCars(testUserId, "1000", "200", "xyz", "true");
assert carsResult.size() > 0;
} catch (IOException | InterruptedException | SQLException e) {
e.printStackTrace();
Expand Down

0 comments on commit f20dff5

Please sign in to comment.