Question

Write a single concise, correct, and well-formed test method for each of the following requirements. Remember...

Write a single concise, correct, and well-formed test method for each of the following requirements. Remember the decorator (@Test), and use the appropriate assertion (which should be one of assertEquals, assertTrue, or assertFalse). Please look at the tests in the projects if you’re not sure what they should look like. (1 point each)

Test the toLowerCase method of String on the string "ASDF".
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:-

The below below is the required answers for the given questions

import static org.junit.Assert.*;
import org.junit.Test;

public class JunitTest {

@Test
   public void testtoLowerCase1() {

       String str = "ASDF";
       assertEquals("asdf", str.toLowerCase());

   }

}

Hope this answer will helps you. I have provided the exact answer as asked in question. Still If you have even any small doubt, please let me know by comments. I am there to help you. Please give Thumbs Up,Thank You!! All the best

Add a comment
Know the answer?
Add Answer to:
Write a single concise, correct, and well-formed test method for each of the following requirements. Remember...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT