input
stringlengths
10
828
output
stringlengths
5
107
public void test default promotions writer with empty connection url throws exception try string driver class name com mysql jdbc driver string connection url string user root string password root instance new default promotions writer driver class name connection url user password fail should throw illegal argument exception catch illegal argument exception e expected do nothings
empty connection url test for
public void test default promotions writer with null user throws exception try string driver class name com mysql jdbc driver string connection url jdbc mysql localhost 3306 mydb use unicode true amp character encoding utf 8 string user null string password root instance new default promotions writer driver class name connection url user password fail should throw illegal argument exception catch illegal argument exception e expected do nothings
null user test for
private void assert entity entity expected entity actual assert equals these two entity entities are not equal id mismatched expected get id actual get id assert equals these two entity entities are not equal deleted mismatched expected is deleted actual is deleted
p asserts the two entity entities are equal
public void test default promotions writer with empty user throws exception try string driver class name com mysql jdbc driver string connection url jdbc mysql localhost 3306 mydb use unicode true amp character encoding utf 8 string user string password root instance new default promotions writer driver class name connection url user password fail should throw illegal argument exception catch illegal argument exception e expected do nothings
empty user test for
public void test default promotions writer with null password throws exception try string driver class name com mysql jdbc driver string connection url jdbc mysql localhost 3306 mydb use unicode true amp character encoding utf 8 string user root string password null instance new default promotions writer driver class name connection url user password fail should throw illegal argument exception catch illegal argument exception e expected do nothings
null password test for
public boolean get override return override
getter method for the namesake variable simply return the namesake
protected void set up throws exception instance new default promotions reader
setup this test initialize the instance to test
public void test read promotions throws exception file file new file test files promotion loader sample data csv promotion promotions instance read promotions file assert equals the read promotions should have 39 records 39 promotions length
accuracy test for
public void test read promotions with null throws exception try instance read promotions null fail should throw illegal argument exception catch illegal argument exception e expected do nothings
null argument test for
public void test read promotions with no existing file throws exception try instance read promotions new file no exist fail should throw promotions reader exception catch promotions reader exception e expected do nothings
no existing file test for
public void test read promotions with parse boolean throws exception try instance read promotions new file test files promotion loader sample data with parse boolean error csv fail should throw promotions reader exception catch promotions reader exception e expected do nothings
parse boolean test for
public void test read promotions with parse double throws exception try instance read promotions new file test files promotion loader sample data with parse double error csv fail should throw promotions reader exception catch promotions reader exception e expected do nothings
parse double test for
public void test read promotions with parse date throws exception try instance read promotions new file test files promotion loader sample data with parse date error csv fail should throw promotions reader exception catch promotions reader exception e expected do nothings
parse date test for
public void test write promotions throws exception file file new file test files promotion loader sample data csv default promotions reader default promotions reader new default promotions reader promotion promotions default promotions reader read promotions file instance write promotions promotions
accuracy test for
public void test read promotions with null date throws exception try instance read promotions new file test files promotion loader sample data with nullto date csv fail should throw promotions reader exception catch promotions reader exception e expected do nothings
parse date test for
public void test write promotions with null throws exception try instance write promotions null fail should throw illegal argument exception catch illegal argument exception e expected do nothings
null argument test for
public void test write promotions with null element throws exception try instance write promotions new promotion null fail should throw illegal argument exception catch illegal argument exception e expected do nothings
null element test for
private void assert escrowee escrowee expected escrowee actual assert person expected actual assert equals these two escrowee entities are not equal company mismatched expected get company actual get company
p asserts the two escrowee entities are equal
public void test write promotions with fail connection throws exception try file file new file test files promotion loader sample data csv default promotions reader default promotions reader new default promotions reader promotion promotions default promotions reader read promotions file instance set connection url url instance write promotions promotions fail should throw promotions writer exception catch promotions writer exception e expected do nothings
fail connection test for
protected void set up throws exception cause new illegal argument exception super set up
setup this test
public void test configuration exception with message exception configuration exception new configuration exception message assert not null configuration exception assert true the error message should match configuration exception get message index of message 1 with message and cause configuration exception new configuration exception message cause assert true the inner exception should match configuration exception get cause instanceof illegal argument exception assert true the error message should match configuration exception get message index of message 1
tests configuration exception
public void test promotions loader exception with message exception promotions loader exception new promotions loader exception message assert not null promotions loader exception assert true the error message should match promotions loader exception get message index of message 1 with message and cause promotions loader exception new promotions loader exception message cause assert true the inner exception should match promotions loader exception get cause instanceof illegal argument exception assert true the error message should match promotions loader exception get message index of message 1
tests promotions loader exception
public void test promotions reader exception with message exception promotions reader exception new promotions reader exception message assert not null promotions reader exception assert true the error message should match promotions reader exception get message index of message 1 with message and cause promotions reader exception new promotions reader exception message cause assert true the inner exception should match promotions reader exception get cause instanceof illegal argument exception assert true the error message should match promotions reader exception get message index of message 1
tests promotions reader exception
public void test promotions writer exception with message exception promotions writer exception new promotions writer exception message assert not null promotions writer exception assert true the error message should match promotions writer exception get message index of message 1 with message and cause promotions writer exception new promotions writer exception message cause assert true the inner exception should match promotions writer exception get cause instanceof illegal argument exception assert true the error message should match promotions writer exception get message index of message 1
tests promotions writer exception
public void test write promotions with class not find throws exception try file file new file test files promotion loader sample data csv default promotions reader default promotions reader new default promotions reader promotion promotions default promotions reader read promotions file instance set driver class name driver class name instance write promotions promotions fail should throw promotions writer exception catch promotions writer exception e expected do nothings
class not find test for
protected void set up throws exception instance new promotion
setup this test initialize the instance to test
public void test get driver class name throws exception string driver class name driver class name instance set driver class name driver class name assert equals get driver class name and set driver class name failure occured driver class name instance get driver class name
accuracy test for
public void test get mat cap percent throws exception double value null instance set mat cap percent value assert equals value instance get mat cap percent
test for the getter of the property mat cap percent
public void test set driver class name throws exception string driver class name driver class name instance set driver class name driver class name assert equals get driver class name and set driver class name failure occured driver class name instance get driver class name
accuracy test for
public void test set mat cap percent throws exception double value null instance set mat cap percent value assert equals value instance get mat cap percent
test for the setter of the property mat cap percent
public void test set driver class name with null throws exception try instance set driver class name null fail should throw illegal argument exception catch illegal argument exception e expected do nothing
null argument test for
public void test get unit of meas throws exception string value value instance set unit of meas value assert equals value instance get unit of meas
test for the getter of the property unit of meas
public void test set driver class name with empty throws exception try instance set driver class name fail should throw illegal argument exception catch illegal argument exception e expected do nothing
empty argument test for
public void test set unit of meas throws exception string value value instance set unit of meas value assert equals value instance get unit of meas
test for the setter of the property unit of meas
public void test get connection url throws exception string connection url connection url instance set connection url connection url assert equals get connection url and set connection url failure occured connection url instance get connection url
accuracy test for
public void test get feature throws exception string value value instance set feature value assert equals value instance get feature
test for the getter of the property feature
public void test set connection url throws exception string connection url connection url instance set connection url connection url assert equals get connection url and set connection url failure occured connection url instance get connection url
accuracy test for
public void test set feature throws exception string value value instance set feature value assert equals value instance get feature
test for the setter of the property feature
public void test set connection url with null throws exception try instance set connection url null fail should throw illegal argument exception catch illegal argument exception e expected do nothing
null argument test for
public void test get ee2 throws exception string value value instance set ee2 value assert equals value instance get ee2
test for the getter of the property ee2
public void test set connection url with empty throws exception try instance set connection url fail should throw illegal argument exception catch illegal argument exception e expected do nothing
empty argument test for
private void assert escrowee type escrowee type expected escrowee type actual assert lookup entity expected actual
p asserts the two escrowee type entities are equal
public void test set ee2 throws exception string value value instance set ee2 value assert equals value instance get ee2
test for the setter of the property ee2
public void test get user throws exception string user user instance set user user assert equals get user and set user failure occured user instance get user
accuracy test for
public void test get ee1 throws exception string value value instance set ee1 value assert equals value instance get ee1
test for the getter of the property ee1
public void test set user throws exception string user user instance set user user assert equals get user and set user failure occured user instance get user
accuracy test for
public void test set ee1 throws exception string value value instance set ee1 value assert equals value instance get ee1
test for the setter of the property ee1
public void test set user with null throws exception try instance set user null fail should throw illegal argument exception catch illegal argument exception e expected do nothing
null argument test for
public void test get country throws exception string value value instance set country value assert equals value instance get country
test for the getter of the property country
public void test set user with empty throws exception try instance set user fail should throw illegal argument exception catch illegal argument exception e expected do nothing
empty argument test for
public void test set country throws exception string value value instance set country value assert equals value instance get country
test for the setter of the property country
public void test get distrib chan throws exception string value value instance set distrib chan value assert equals value instance get distrib chan
test for the getter of the property distrib chan
public void test get password throws exception string password password instance set password password assert equals get password and set password failure occured password instance get password
accuracy test for
public void test set distrib chan throws exception string value value instance set distrib chan value assert equals value instance get distrib chan
test for the setter of the property distrib chan
public void test set password throws exception string password password instance set password password assert equals get password and set password failure occured password instance get password
accuracy test for
public void test get part throws exception string value value instance set part value assert equals value instance get part
test for the getter of the property part
public void test set part throws exception string value value instance set part value assert equals value instance get part
test for the setter of the property part
public void test set password with null throws exception try instance set password null fail should throw illegal argument exception catch illegal argument exception e expected do nothing
null argument test for
public void test get product order type throws exception string value value instance set product order type value assert equals value instance get product order type
test for the getter of the property product order type
public void test set product order type throws exception string value value instance set product order type value assert equals value instance get product order type
test for the setter of the property product order type
public void test set password with empty throws exception try instance set password fail should throw illegal argument exception catch illegal argument exception e expected do nothing
empty argument test for
public void test demo throws exception create loader with default configuration file i e config properties promotions loader new promotions loader create loader with specified configuration file promotions loader new promotions loader configuration properties we may disable logging promotions loader set logger null default promotions reader promotions loader get promotions reader set logger null default promotions writer promotions loader get promotions writer set logger null parse another specified file promotions loader set promotions file new file test files promotion loader sample data csv load promotions from csv file to database promotions loader load promotions
demo for this component
public void test get excluding throws exception string value value instance set excluding value assert equals value instance get excluding
test for the getter of the property excluding
public void test set excluding throws exception string value value instance set excluding value assert equals value instance get excluding
test for the setter of the property excluding
public void test get not included throws exception string value value instance set not included value assert equals value instance get not included
test for the getter of the property not included
public void test set not included throws exception string value value instance set not included value assert equals value instance get not included
test for the setter of the property not included
private void assert flip tax paid by type flip tax paid by type expected flip tax paid by type actual assert lookup entity expected actual
p asserts the two flip tax paid by type entities are equal
public void test get variance id throws exception string value value instance set variance id value assert equals value instance get variance id
test for the getter of the property variance id
public void test set variance id throws exception string value value instance set variance id value assert equals value instance get variance id
test for the setter of the property variance id
public void test get amount percent throws exception double value null instance set amount percent value assert equals value instance get amount percent
test for the getter of the property amount percent
public void test set amount percent throws exception double value null instance set amount percent value assert equals value instance get amount percent
test for the setter of the property amount percent
public void test get georegion throws exception string value value instance set georegion value assert equals value instance get georegion
test for the getter of the property georegion
public void test set georegion throws exception string value value instance set georegion value assert equals value instance get georegion
test for the setter of the property georegion
public void test get mach type throws exception string value value instance set mach type value assert equals value instance get mach type
test for the getter of the property mach type
public void test set mach type throws exception string value value instance set mach type value assert equals value instance get mach type
test for the setter of the property mach type
public void test get model throws exception string value value instance set model value assert equals value instance get model
test for the getter of the property model
public void test set model throws exception string value value instance set model value assert equals value instance get model
test for the setter of the property model
public void test get pid throws exception string value value instance set pid value assert equals value instance get pid
test for the getter of the property pid
public void test set pid throws exception string value value instance set pid value assert equals value instance get pid
test for the setter of the property pid
public void test get promo type throws exception string value value instance set promo type value assert equals value instance get promo type
test for the getter of the property promo type
private void assert identity identity expected identity actual assert entity expected actual assert equals these two identity entities are not equal email mismatched expected get email actual get email assert equals these two identity entities are not equal type mismatched expected get type actual get type
p asserts the two identity entities are equal
public void test set promo type throws exception string value value instance set promo type value assert equals value instance get promo type
test for the setter of the property promo type
public void test get override throws exception boolean value null instance set override value assert equals value instance get override
test for the getter of the property override
public void test set override throws exception boolean value null instance set override value assert equals value instance get override
test for the setter of the property override
public void test get mat cap throws exception double value null instance set mat cap value assert equals value instance get mat cap
test for the getter of the property mat cap
public void test set mat cap throws exception double value null instance set mat cap value assert equals value instance get mat cap
test for the setter of the property mat cap
public void test get epricer throws exception string value value instance set epricer value assert equals value instance get epricer
test for the getter of the property epricer
public void test set epricer throws exception string value value instance set epricer value assert equals value instance get epricer
test for the setter of the property epricer
public void test get id number throws exception string value value instance set id number value assert equals value instance get id number
test for the getter of the property id number
public void test set id number throws exception string value value instance set id number value assert equals value instance get id number
test for the setter of the property id number
public void test get amount throws exception string value value instance set amount value assert equals value instance get amount
test for the getter of the property amount
public void test set amount throws exception string value value instance set amount value assert equals value instance get amount
test for the setter of the property amount
public void test get from date throws exception date value new date instance set from date value assert equals value instance get from date
test for the getter of the property from date
private void assert included item included item expected included item actual assert lookup entity expected actual
p asserts the two included item entities are equal
public void test set from date throws exception date value new date instance set from date value assert equals value instance get from date
test for the setter of the property from date
public void test get zdpx throws exception string value value instance set zdpx value assert equals value instance get zdpx
test for the getter of the property zdpx
public void test set zdpx throws exception string value value instance set zdpx value assert equals value instance get zdpx
test for the setter of the property zdpx
public void test get description throws exception string value value instance set description value assert equals value instance get description
test for the getter of the property description
public void test set description throws exception string value value instance set description value assert equals value instance get description
test for the setter of the property description
public void test get to date throws exception date value new date instance set to date value assert equals value instance get to date
test for the getter of the property to date