Question
Simulating a common scenario you have been given a JAR file containing the binaries for three data classes, Customer, Account, and Bank. Your task will
Simulating a common scenario you have been given a JAR file containing the binaries for three data classes, Customer, Account, and Bank. Your task will be to develop test classes for each. NOTE: you have not been given the source code, but instead the API docs, which are all youll need to do the testing. You will not be debugging nor fixing the code, only testing the code. Your test should discover some bugs within the classes youve been given. For example, Strings should not be null or blank, numbers should not be negative, etc. The 2601_lab7_Bank starter project has been provided with test classes already stubbed out. Also included are the Javadoc generated html files in the docs folder. Use these to determine what the classes are supposed to do. You will submit the project, along with your completed test classes when completed and before the next lesson.
import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; class AccountTest { @BeforeAll static void setUpBeforeClass() throws Exception { } @AfterAll static void tearDownAfterClass() throws Exception { } @BeforeEach void setUp() throws Exception { } @AfterEach void tearDown() throws Exception { } @Test void test() { fail("Not yet implemented"); } }
\\\\\\\\\\\\\\\\\\\
import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; class BankTest { @BeforeAll static void setUpBeforeClass() throws Exception { } @AfterAll static void tearDownAfterClass() throws Exception { } @BeforeEach void setUp() throws Exception { } @AfterEach void tearDown() throws Exception { } @Test void test() { fail("Not yet implemented"); } }
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; class CustomerTest { @BeforeAll static void setUpBeforeClass() throws Exception { } @AfterAll static void tearDownAfterClass() throws Exception { } @BeforeEach void setUp() throws Exception { } @AfterEach void tearDown() throws Exception { } @Test void test() { fail("Not yet implemented"); } }
Step 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