Quiz 03 – Unit Testing
Graded Quiz • 30 min Quiz05 Questions Week 2
Re⥃askly Logo

Quiz 03 – Unit Testing

Graded Quiz • 30 min Quiz05 Questions Week 2
Practice More Quizzes:
Quiz
07 Questions Week 1
Quiz
05 Questions Week 2
Quiz
06 Questions Week 2
Quiz
Quiz

Q:

If you want to run a setUp method before every test method, what should you write?

Q:

Will this test pass, fail or throw an error? assertThrows(IndexOutOfBoundsException.class, () -> { // ArrayLists are like arrays in Python ArrayList myList = new ArrayList(); // return the first element of the list String firstString = myList.get(0); });

Q:

What types of comparisons should we use for each data type?

Q:

Which of the following methods checks if two object references point to the same object?

Q:

When Eclipse and the JUnit framework creates new test method stubs for you, what is automatically filled in and what is the reason for that?

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Find Questions in This Page: "CTRL+F"