Complete a JUnit 4 test using the provided NumberSequence file -- 2
Budget $30-250 USD
- Freelancer
- Jobs
- Java
- Complete a JUnit 4 test using the provided NumberSequence file -- 2
Prepare a JUnit 4 test within Eclipse, named TestNumberSequence, for the NumberSequence ADT. Prepare TestNumberSequence with the [login to view URL] package, and write tests against the function implementations within NumberSequence. Note: this will need to be completed within 24 hours.
Looking at [login to view URL]() method:
/**
* Retrieve the first number in the sequence.
*
* @return first number as an `int`
*/
public int first()
{
// Not yet implemented.
// This is an exercise in writing tests, not implementation.
return 0; // this is a placeholder so that the code compiles.
}
This function retrieves the first number in the sequence. How is it stored? This is just an implementation question. The only concern is whether this function returns the expected first number as an int. The implementation details are not relevant to writing the test.
Next, looking at [login to view URL]() method:
/**
* List all all numbers generated thus far, in order.
* <p>
* <b>Any formatting is acceptable.</b>
*/
@Override
public String toString()
{
// Not yet implemented.
// This is an exercise in writing tests, not implementation.
return "This is a placeholder so that the code compiles.";
}
It states that any formatting is accepted, so the test does not need to assume specific formatting for toString. Nothing within the provided NumberSequence file needs to be edited. I will only need the [login to view URL] file that is created upon completion. I have provided a sample of test placeholders, but they are not complete.
Overview:
1 - File returned ([login to view URL]) is placed within the [login to view URL] package.
2 - Using a completed correct implementation of NumberSequence, every single one of the tests pass.
3 - One test per mutator, the piece of code performs operations as designed and does not something it was not designed for.
I will be running this through Eclipse Java, so it needs to run through that. However, feel free to use whichever methods you prefer as long as the outcome is the same.
Tildelt til:
***I can start now to help in your Java Project with JUnit 4 to get it done in just next few hours*** Hi There, I am interested in the Java task/code/project. Let's start and discuss further on the chat. As I have w Flere
3 freelancere byder i gennemsnit $73 timen for dette job
Hello Sir/ Ma’am A skilled full stack developer, I have rich experience in JAVA, C, C++, C#, Python, .NET , Mysql, Sql, Ionic , Matlab, ANDROID and ARDUINO. I am very confident with my skills and I'd like to help Flere
Hi, "I have gone through your description. "This is my area of specialization, i can get it done 100 % perfectly well. Please ping me in person. I can help you to complete all tasks. I have hands-on experience in Flere