Updated Test method name

This commit is contained in:
Satyam 2018-10-03 10:39:58 +05:30
parent 6460e73eb6
commit 7070aae38f
1 changed files with 2 additions and 2 deletions

View File

@ -16,11 +16,11 @@ public class FindItemsBasedOnValues {
public static void main(String[] args) throws ParseException { public static void main(String[] args) throws ParseException {
FindItemsBasedOnValues findItems = new FindItemsBasedOnValues(); FindItemsBasedOnValues findItems = new FindItemsBasedOnValues();
findItems.findItemsImpl(); findItems.givenListOfCompanies_thenListOfClientsIsFilteredCorrectly();
} }
@Test @Test
public void findItemsImpl() throws ParseException { public void givenListOfCompanies_thenListOfClientsIsFilteredCorrectly() throws ParseException {
List<Client> expectedList = new ArrayList<Client>(); List<Client> expectedList = new ArrayList<Client>();
Client expectedClient = new Client(1001, DATE_FORMAT.parse("01-02-2018")); Client expectedClient = new Client(1001, DATE_FORMAT.parse("01-02-2018"));
expectedList.add(expectedClient); expectedList.add(expectedClient);