Question: please help ne answer this 1 . Write unit tests for the following methods of the StringUtils class in the Apache Commons Lang library. More

please help ne answer this
1. Write unit tests for the following methods of the StringUtils class in the Apache Commons Lang library. More detail of the class can be found in its documentation
write a test method for each of the following and test the target method four different ways (\(10*2=20\) Marks)
a. join(List list, String separator, int startIndex, int endIndex)
b. lastIndexOf(CharSequence seq, int searchChar)
c. leftPad(String str, int size, char padChar)
d. repeat(String str, int repeat)
c. reverse(String str)
f. split(String str, char separatorChar)
g. startsWith(CharSequence str, CharSequence prefix)
h. substring(String str, int start)
i.\(\quad \) trim(String str)
j. upperCase(String str)
2. Create a test suite to bundle all the above test cases to run them together (5 Marks) The evaluation will consider the effectiveness of your test cases.
Submission Requirements:
Create a Java project that include all the required dependencies and source code for performing unit tests. Export the project as a zip file and then upload on the course website
please help ne answer this 1 . Write unit tests

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!