Java Unit test

Stängt Publicerat 7 år sedan Betalades vid leverans
Stängt Betalades vid leverans

I am looking for a core Java developer to write unit tests for four methods from class from a Java project. This part of the Java code deals with updating of two fields in the account table. These fields are “status” and “level”.

The account holder subscribes to our service and in turn has users that access his/her resources.

Level - This currently has values of “FREE, STANDARD, STARTER,PROFESSIONAL, PAYU, CUSTOM”. The values “PAYU, CUSTOM” are rarely used. This is the level of the subscription. This is chosen by the account holder.

Only a certain amount of users can access his/her resources before the user has to update his/her subscription level.

Status - this field has values of “NORMAL, EXPIRED, DEACTIVATED”. This tells us if the user has gone over his/her subscription level and what should happen.

The status is updated, if necessary, when when one of the account holders users tries to accesses one of his/her resources.

There are some rules that determine whether an account should be “EXPIRED” or “DEACTIVATED” or set to “NORMAL”.

The coder should be able to refactor the code to make it suitable to write unit tests if necessary also fix any bugs that will arise from the unit testing of the code.

The class is called “AccountServiceHelper” and this has several methods to be tested. These include:

/**

* Expire, lock or re-set accounts after the assessment is taken.

*/

public void check()

/**

* Is the given date within a month of today’s date.

*

* @param date - the given date

* @return Return true if the given date within a month of today’s date

*/

private boolean isGivenDateWithinMonth(Date date)

/**

* @return Return true if we are into the next customer month after the

* account has been expired or deactivated.

*/

public boolean getIsStartOfNextCustomerMonth()

/**

* Assuming the account is active this gets the date of the last subscription payment.

*

* @return Returns the date of the last subscription

*/

public Date getLastSubscriptionPaymentDate()

Java Programvarutestning

Projekt-id: #12915707

About the project

27 offerter Distansprojekt Aktivt 7 år sedan

27 frilansare har lagt bud på i genomsnitt $39 för det här jobbet

it2051229

Hi there, I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details. Thanks.

$35 USD inom 1 dag
(1122 omdömen)
7.7
yassine008

Good Day! i'm expert java dev with 8 years experience in IT area working with cutting edge technologies for both web application and software development. Kindly Regards

$35 USD inom 1 dag
(42 omdömen)
7.1
utkarshkatiyar19

I can do it easily.

$50 USD inom 1 dag
(328 omdömen)
7.4
mhortis

Hello, I am a senior Full-Stack Java developer and I have coped with several projects, both small and more complex ones. I have a very strong academic background in algorithms and complexity, information systems a Mer

$100 USD inom 4 dagar
(25 omdömen)
5.6
neerajagrawal201

I have good knowledge in below mentioned skills by you. I also have some certifications in Java. I can share some of demos with you if you want for better understanding. Currently I'm working on a banking project in an Mer

$25 USD inom 1 dag
(43 omdömen)
5.0
usaravananbe2004

Hi, I am Saravanan from Chennai, India I am interested to apply for this work as I have hands on experience in Junit,TDD We can do this task by Junit and java, I have done similar task and can be completed by today. Mer

$77 USD inom 1 dag
(26 omdömen)
4.8
martinrisa1

Hi, I am a Professional freelancer. I specialize on smaller projects like this one is. I am also a student of a theoretic Informatics so I can do the job with top quality outcome. Regards, Bc. Martin Risa

$35 USD inom 2 dagar
(3 omdömen)
2.7
cardelgo

Hello. Your quality parameters will be applied to the project. Would be great to discuss them in advance in order to agree on how will we include them. I have coordinated software deployment on premise and on clo Mer

$35 USD inom 3 dagar
(4 omdömen)
2.8
nidhi0257

4 years of IT experience in software development on Core java, J2EE, Spring, struts 2, web services, Cobertura, restful interface, JSON, MQTT client, spring MVC, mosquitto, Amazon s3. Currently working on Spring MVC, Mer

$30 USD inom 3 dagar
(5 omdömen)
1.5
YogeshHingorani

Hello, Hope you are doing well we are premier brand in Web Design, Development, technical writing, script editing & Internet Marketing Solution provider. We have a handpicked team of artistic designers, skilled d Mer

$35 USD inom 10 dagar
(0 omdömen)
0.0
shareefbecse

A proposal has not yet been provided

$31 USD inom 3 dagar
(0 omdömen)
0.0
FarazaKhokhar

I am interested to working your project and i can do this job i have experience in Java and Android.

$25 USD inom 1 dag
(0 omdömen)
0.0
dmsam

I have been working with java since 2005. So writing this test is a matter of understanding the business logic described in the project description.

$35 USD inom 10 dagar
(0 omdömen)
0.0
rajeesha

Hello, I am a java expert and very much interested to work on this.I promise you to give quality work if you accept my bid. Cheers, Rajeesha

$35 USD inom 5 dagar
(0 omdömen)
0.0
acool318

Hi I have the correct knowledge and expertise for web UI automation using Selenium and Java. I wrie test cases in TestNG as well as JUnit. I can implement my knowledge to your company to provide better and quick resul Mer

$35 USD inom 10 dagar
(0 omdömen)
0.0
garimaiyer

I am a ISTQB Certified Software Testing Professional with over 10 years of experience in Testing high volume Financial Applications. Have great experience in Automation testing using tools like Selenium. Had execute Mer

$35 USD inom 10 dagar
(0 omdömen)
0.0
aliusman7662

A proposal has not yet been provided

$35 USD inom 10 dagar
(0 omdömen)
0.0