Find Jobs
Hire Freelancers

To write the source code from junit testcase

₹600-1500 INR

Closed
Posted over 7 years ago

₹600-1500 INR

Paid on delivery
package [login to view URL]; import static [login to view URL]; import [login to view URL]; import [login to view URL]; import [login to view URL]; import [login to view URL]; public class CarTest { private Car car; @Before public void initCar() { car = new Car(); } @Test public void shouldDepictTravelTime() { // destination, time (hours) [login to view URL]("Detroit", 3); // note how the first letter of the destination is what the travel log will use to visually represent the destination and number of hours spent travelling assertEquals("DDD", [login to view URL]("Detroit")); [login to view URL]("Chicago", 4); assertEquals("CCCC", [login to view URL]("Chicago")); } @Test public void shouldDepictTravelTimeWithMultipleDestinations() { // note how we now have an overloaded method with source, destination, time (hours) // make sure you don't break previous unit tests! [login to view URL]("", "Detroit", 2); assertEquals("DD", [login to view URL]("Detroit")); [login to view URL]("Detroit", "Chicago", 3); // note how the output is expected to be padded with '.' to represent hours not covered in this "log" assertEquals("DD...", [login to view URL]("Detroit")); assertEquals("DDCCC", [login to view URL]("Chicago")); } @Test public void shouldDepictSegmentOfTravelTime() { [login to view URL]("", "Detroit", 5); [login to view URL]("Detroit", "Chicago", 3); // note how the output is expected to be padded with '.' to represent hours not covered in this "log" // another overloaded method with source, destination assertEquals(".....CCC", [login to view URL]("Detroit", "Chicago")); } @Test(expected=[login to view URL]) public void shouldThrowExceptionForInvalidParamterOrder() { [login to view URL]("", "Detroit", 3); [login to view URL]("Detroit", "Chicago", 4); // this should throw an exception, since we didn't travel from chicago to detroit (we only went from detroit to chicago) [login to view URL]("Chicago", "Detroit"); } } Need to create source code for this.
Project ID: 12760366

About the project

12 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
12 freelancers are bidding on average ₹1,607 INR for this job
User Avatar
Hello, I am expert in java/c/c++/python/C# and i can deliver your task in the least time and least payments. The code will be well commented and well formatted for better understanding. I believe in long term relations so first check your work then release the payments. Pm me for further details. Thank You!
₹1,500 INR in 1 day
5.0 (88 reviews)
5.5
5.5
User Avatar
Hi, I am Saravanan from Chennai, India I am interested to apply for this work as I have hands on experience in Java and Junit, TDD About myself I have 9 years’ hands on experience on Web /Desktop Application Development, Automation/Scraping and Testing using Java Technologies. Expertise in Client/Server and application development using Java and J2EE technologies Strong Experience on Struts, Spring, JSF, Hibernate and Restful/SOAP Web services. Experience on SOUP UI/Rest Assured, Mobile and JMS Testing Strong Experience on Automation using Selenium Web Driver, Html Unit Driver, Sikuli Driver, FEST, Sauce Lab Strong Experience on Junit, TestNG, Mockito, DBUnit, SpringMock, Rest fuse, Rest assured Strong Experience on TDD/BDD using Jbehave, Cucumber Strong Experience on Appium Exprience on Cloud Based System using Cloud Bees, AWS Experience on CI Build using Jenkins and Technical quality analysis using Sonar Experience on RDBMS(Mysql, Oracle, SQL Server) and NoSQL DB(Mongo DB, CouchDB)
₹1,750 INR in 1 day
4.7 (26 reviews)
4.8
4.8
User Avatar
This is nearly one hour task for me. Please award me with milestones. Best service guaranteed. ......................................
₹1,050 INR in 1 day
5.0 (21 reviews)
4.2
4.2
User Avatar
I am a professional java developer with 4.5 years of experience in Java, REST, Jersey, Data Structures and Algorithms, SQL and NoSQL(MongoDB, Redis), Spring, Hibernate. I have worked in both MNC as well as start ups.
₹1,500 INR in 1 day
5.0 (5 reviews)
2.7
2.7
User Avatar
Even though ,I am new here, I have 4+ years professional work experience. I am the freelancer, who knows the value of time, very hard working and always delivers the work on time.
₹1,250 INR in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
₹1,750 INR in 3 days
0.0 (0 reviews)
1.2
1.2
User Avatar
hello, This is a really simple and interesting project. I have 5 years of experience in java development and will write the code according to the test cases. I can do it in less rupees because its my first project bid at freelancer.
₹1,000 INR in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of INDIA
Bangalore, India
0.0
0
Member since Dec 3, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.