input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void test get available initial date throws exception date value new date instance set available initial date value assert equals value instance get available initial date | test for the getter of the property available initial date |
public void test set available initial date throws exception date value new date instance set available initial date value assert equals value instance get available initial date | test for the setter of the property available initial date |
public void test get last revision date throws exception date value new date instance set last revision date value assert equals value instance get last revision date | test for the getter of the property last revision date |
public void test set last revision date throws exception date value new date instance set last revision date value assert equals value instance get last revision date | test for the setter of the property last revision date |
public void test get survey type throws exception survey type value null instance set survey type value assert equals value instance get survey type | test for the getter of the property survey type |
public void test set survey type throws exception survey type value null instance set survey type value assert equals value instance get survey type | test for the setter of the property survey type |
protected void set up throws exception instance new seller | setup this test initialize the instance to test |
public void test get alternate name throws exception string value value instance set alternate name value assert equals value instance get alternate name | test for the getter of the property alternate name |
public void test set alternate name throws exception string value value instance set alternate name value assert equals value instance get alternate name | test for the setter of the property alternate name |
private void assert admin admin expected admin actual assert auditable entity expected actual assert equals these two admin entities are not equal email mismatched expected get email actual get email | p asserts the two admin entities are equal |
protected void set up throws exception instance new closing location | setup this test initialize the instance to test |
protected void set up throws exception super set up emf persistence create entity manager factory ocs em emf create entity manager | setup this test initialize the entity manager factory instance and |
protected void tear down throws exception super tear down em close | tear down this test close the entity manager instance |
protected void set up throws exception instance new management company | setup this test initialize the instance to test |
private void assert assistant assistant expected assistant actual assert person expected actual | p asserts the two assistant entities are equal |
public void test get notes throws exception string value value instance set notes value assert equals value instance get notes | test for the getter of the property notes |
public void test set notes throws exception string value value instance set notes value assert equals value instance get notes | test for the setter of the property notes |
public void test get account executive throws exception management person value null instance set account executive value assert equals value instance get account executive | test for the getter of the property account executive |
public void test set account executive throws exception management person value null instance set account executive value assert equals value instance get account executive | test for the setter of the property account executive |
private void assert attorney attorney expected attorney actual assert person expected actual assert equals these two attorney entities are not equal firm mismatched expected get firm actual get firm assert equals these two attorney entities are not equal forgot password count mismatched expected get forgot password count actual get forgot password count assert equals these two attorney entities are not equal forgot password date mismatched expected get forgot password date get time 1000 actual get forgot password date get time 1000 | p asserts the two attorney entities are equal |
private boolean parse boolean string value throws promotions reader exception if value null value trim length 0 return null value value trim if y equals ignore case value return true else if n equals ignore case value return false else if logger null logger error the value value should be in boolean format y or n throw new promotions reader exception the value value should be in boolean format y or n | converter of string to boolean |
private double parse double string value throws promotions reader exception if value null value trim length 0 return null try return double parse double value trim catch number format exception e if logger null logger error the value value should be in double format e throw new promotions reader exception the value value should be in double format e | converter of string to double |
private date parse date string value throws promotions reader exception if value null value trim length 0 return null value value trim try if value length mm dd yyyy length return date time format parse value else return date format parse value catch parse exception e if logger null logger error the value value should be in mm dd yyyy or mm dd yyyy hh mm ss format e throw new promotions reader exception the value value should be in mm dd yyyy or mm dd yyyy hh mm ss format e | converter of string to date |
private void close connection connection connection throws promotions writer exception if connection null try connection close catch sqlexception e if logger null logger error fails to close the connection to database e throw new promotions writer exception fails to close the connection to database e | close the connection to database |
private connection get connection throws promotions writer exception try class for name driver class name return driver manager get connection connection url user password catch class not found exception cfe if logger null logger error the class driver class name can not find cfe throw new promotions writer exception driver class name can not find cfe catch sqlexception sqle if logger null logger error fails to connect to database sqle throw new promotions writer exception fails to connect to database sqle | connect to the database |
public string get driver class name return driver class name | getter method for the namesake variable simply return the namesake |
public promotions reader get promotions reader return promotions reader | getter method for the namesake variable simply return the namesake |
public void set driver class name string driver class name helper check null or empty driver class name driver class name logger this driver class name driver class name | setter method for the namesake variable |
public void set promotions reader promotions reader promotions reader helper check null promotions reader promotions reader logger this promotions reader promotions reader | setter method for the namesake variable |
public promotions writer get promotions writer return promotions writer | getter method for the namesake variable simply return the namesake |
public void set connection url string url helper check null or empty url connection url logger this connection url url | setter method for the namesake variable |
public void set promotions writer promotions writer promotions writer helper check null promotions writer promotions writer logger this promotions writer promotions writer | setter method for the namesake variable |
public file get promotions file return promotions file | getter method for the namesake variable simply return the namesake |
public void set user string user helper check null or empty user user logger this user user | setter method for the namesake variable |
public void set promotions file file promotions file helper check null promotions file promotion file logger this promotions file promotions file | setter method for the namesake variable |
public void load promotions throws promotions reader exception promotions writer exception promotions loader exception if this logger null this logger debug enter method load promotions promotion promotions promotions reader read promotions promotions file promotions writer write promotions promotions | this method is used to load promotions from promotions file to database |
public void set password string password helper check null or empty password password logger this password password | setter method for the namesake variable |
public string get id number return id number | getter method for the namesake variable simply return the namesake |
public void set id number string id number this id number id number | setter method for the namesake variable simply set the namesake variable |
public string get mach type return mach type | getter method for the namesake variable simply return the namesake |
public void test check null throws exception object argument null try helper check null argument argument null fail should throw illegal argument exception catch illegal argument exception e expected do nothings | null argument test for |
public void test check null or empty with null throws exception string argument null try helper check null or empty argument argument null fail should throw illegal argument exception catch illegal argument exception e expected do nothings | null argument test for |
public void test check null or empty with empty throws exception string argument try helper check null or empty argument argument null fail should throw illegal argument exception catch illegal argument exception e expected do nothings | empty argument test for |
public void set mach type string mach type this mach type mach type | setter method for the namesake variable simply set the namesake variable |
protected void set up throws exception instance new promotions loader | setup this test initialize the instance to test |
protected void tear down throws exception 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 root class for name driver class name connection connection driver manager get connection connection url user password statement statement connection create statement statement execute delete from promotion connection close | tear down the test environment |
private void assert buyer buyer expected buyer actual assert person expected actual assert equals these two buyer entities are not equal ssn mismatched expected get ssn actual get ssn | p asserts the two buyer entities are equal |
public void set part string part this part part | setter method for the namesake variable simply set the namesake variable |
public string get variance id return variance id | getter method for the namesake variable simply return the namesake |
public void set variance id string variance id this variance id variance id | setter method for the namesake variable simply set the namesake variable |
public string get excluding return excluding | getter method for the namesake variable simply return the namesake |
public void set excluding string excluding this excluding excluding | setter method for the namesake variable simply set the namesake variable |
public string get product order type return product order type | getter method for the namesake variable simply return the namesake |
private void assert closing company closing company expected closing company actual assert person expected actual | p asserts the two closing company entities are equal |
public void set product order type string type this product order type type | setter method for the namesake variable simply set the namesake variable |
public string get epricer return e pricer | getter method for the namesake variable simply return the namesake |
public void set epricer string e pricer this e pricer e pricer | setter method for the namesake variable simply set the namesake variable |
public string get georegion return geo region | getter method for the namesake variable simply return the namesake |
public void set georegion string region this geo region region | setter method for the namesake variable simply set the namesake variable |
public string get not included return not included | getter method for the namesake variable simply return the namesake |
public void set not included string not included this not included not included | setter method for the namesake variable simply set the namesake variable |
private void assert closing location closing location expected closing location actual assert lookup entity expected actual | p asserts the two closing location entities are equal |
public string get distrib chan return distrib chan | getter method for the namesake variable simply return the namesake |
public void set distrib chan string distrib chan this distrib chan distrib chan | setter method for the namesake variable simply set the namesake variable |
public string get promo type return promo type | getter method for the namesake variable simply return the namesake |
public void set promo type string promo type this promo type promo type | setter method for the namesake variable simply set the namesake variable |
public double get amount percent return amount percent | getter method for the namesake variable simply return the namesake |
public void test get logger throws exception logger value null instance set logger value assert equals value instance get logger | accuracy test for the getter of the property work |
public void set amount percent double amount percent this amount percent amount percent | setter method for the namesake variable simply set the namesake variable |
public void test set logger throws exception logger value null instance set logger value assert equals value instance get logger | accuracy test for the setter of the property work |
private void assert deal deal expected deal actual assert auditable entity expected actual assert deal points expected get deal points actual get deal points assert legal points expected get legal points actual get legal points | p asserts the two deal entities are equal |
public void test get promotions reader throws exception promotions reader promotions reader new default promotions reader instance set promotions reader promotions reader assert equals get promotions reader and set promotions reader failure occured promotions reader instance get promotions reader | accuracy test for |
public string get unit of meas return unit of meas | getter method for the namesake variable simply return the namesake |
public void test set promotions reader throws exception promotions reader promotions reader new default promotions reader instance set promotions reader promotions reader assert equals get promotions reader and set promotions reader failure occured promotions reader instance get promotions reader | accuracy test for |
public void set unit of meas string unit this unit of meas unit | setter method for the namesake variable simply set the namesake variable |
public void test set promotions reader with null throws exception try instance set promotions reader null fail should throw illegal argument exception catch illegal argument exception e expected do nothing | null argument test for |
public double get mat cap return mat cap | getter method for the namesake variable simply return the namesake |
public void test get promotions writer throws exception promotions writer promotions writer new default promotions writer driver class name connection url user password instance set promotions writer promotions writer assert equals get promotions writer and set promotions writer failure occured promotions writer instance get promotions writer | accuracy test for |
public void set mat cap double mat cap this mat cap mat cap | setter method for the namesake variable simply set the namesake variable |
public void test set promotions writer throws exception promotions writer promotions writer new default promotions writer driver class name connection url user password instance set promotions writer promotions writer assert equals get promotions writer and set promotions writer failure occured promotions writer instance get promotions writer | accuracy test for |
public double get mat cap percent return mat cap percent | getter method for the namesake variable simply return the namesake |
public void test set promotions writer with null throws exception try instance set promotions writer null fail should throw illegal argument exception catch illegal argument exception e expected do nothing | null argument test for |
public void set mat cap percent double mat cap percent this mat cap percent mat cap percent | setter method for the namesake variable simply set the namesake variable |
public void test get promotion file throws exception file promotions file new file test files promotion loader sample data csv instance set promotions file promotions file assert equals get promotion file and set promotion file failure occured promotions file instance get promotions file | accuracy test for |
public string get zdpx return zdpx | getter method for the namesake variable simply return the namesake |
public void test set promotion file throws exception file promotions file new file test files promotion loader sample data csv instance set promotions file promotions file assert equals get promotion file and set promotion file failure occured promotions file instance get promotions file | accuracy test for |
public void set zdpx string zdpx this zdpx zdpx | setter method for the namesake variable simply set the namesake variable |
public void test set promotion file with null throws exception try instance set promotions file null fail should throw illegal argument exception catch illegal argument exception e expected do nothing | null argument test for |
public string get ee1 return ee1 | getter method for the namesake variable simply return the namesake |
public void test load promotions throws exception instance load promotions | accuracy test for |
public void set ee1 string ee1 this ee1 ee1 | setter method for the namesake variable simply set the namesake variable |
protected void set up throws exception 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 root instance new default promotions writer driver class name connection url user password | setup this test initialize the instance to test |
public string get ee2 return ee2 | getter method for the namesake variable simply return the namesake |
public void set ee2 string ee2 this ee2 ee2 | setter method for the namesake variable simply set the namesake variable |
public void test default promotions writer with null driver class name throws exception try string driver class name null string connection url jdbc mysql localhost 3306 mydb use unicode true amp character encoding utf 8 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 | null driver class name test for |
public void set from date date from date this from date from date | setter method for the namesake variable simply set the namesake variable |
public void test default promotions writer with empty driver class name throws exception try string driver class name string connection url jdbc mysql localhost 3306 mydb use unicode true amp character encoding utf 8 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 driver class name test for |
private void assert encryption info encryption info expected encryption info actual assert entity expected actual assert equals these two encryption info entities are not equal algorithm name mismatched expected get algorithm name actual get algorithm name | p asserts the two encryption info entities are equal |
public void set to date date to date this to date to date | setter method for the namesake variable simply set the namesake variable |
public void test default promotions writer with null connection url throws exception try string driver class name com mysql jdbc driver string connection url null 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 | null connection url test for |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.