Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private SaleCtr saleCtr;
- @org.junit.Before
- public void setUp() throws Exception {
- SaleCtr saleCtr = new SaleCtr();
- ProductContainer productContainer = ProductContainer.getInstance();
- productContainer.addProduct(new Product(3, "some string", 15, 30));
- }
- @org.junit.After
- public void tearDown() throws Exception {
- }
- @org.junit.Test
- public void addProduct() throws Exception {
- assertEquals(true, saleCtr.addProduct(3,5));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement