Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JAVA Passing all of your JUnit tests ensures that your code does what it is supposed to do. O True O False Question 2 2
JAVA
Passing all of your JUnit tests ensures that your code does what it is supposed to do. O True O False Question 2 2 pts Tests that compare an expected result with an actual result without knowing how the result was obtained are known as _tests. O integration O end-to-end o white-box O black-box o unit Which CODE1, CODE2, CODE3 replacement set completes this JUnit test so that the test passes if and only if a DuplicateKeyException occurs while attempting to insert an existing key into a Hash Table? Assume that Hash Table has an insert method that allows the user to insert a key into the structure. // assumes ht is an empty hash table @Test public void test_DuplicateKeyException { try { ht.insert(1011); CODE1 fail("expected DuplicateKeyException"); catch ( CODE2 ) { /* expected */ } catch ( CODE3 ) { fail("unexpected exception"); } CODE1: ht.insert(1011); CODE2: DuplicateKeyException e CODE3: Exception e CODE1: ht.insert(1011); CODE2: Exception e CODE3: DuplicateKeyException e CODE1: ht.insert(11); CODE2: DuplicateKeyException e CODE3: Exception e CODE1: ht.insert(11); CODE 2: Exception e CODE3: DuplicateKeyException e CODE1: ht.insert("B"); CODE2: Exception e CODE3: DuplicateKeyException e Question 4 2 pts _testing focuses on making sure that all code execution paths have been tested. Oblack-box O gray-box O unit O end-to-end O white-box In Black-Box Testing, we know th F but do not have the [ Select ] ADT user source code system [Select ] In Black-Box Testing, we know the [Select] but do not have the [Select ] answers ADT source code compilerStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started