-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtestProuductDescription.java
40 lines (34 loc) · 1.05 KB
/
testProuductDescription.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ProcessSale;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author JGabbay
*/
public class testProuductDescription {
PersistentStorage storage;
String barcode;
@Before
public void setUp() {
storage = PersistentStorage.getInstance();
}
@After
public void tearDown() {
storage.closeConnection();
}
// TODO add test methods here.
// The methods must be annotated with annotation @Test. For example:
@Test(expected = IndexOutOfBoundsException.class)
public void testProductDescription(){
System.out.println("Testing Product Description\n");
assertNotNull("Description Not Successful", storage.getProductDesc(barcode));
//assertNotNull("Price Not Successful", storage.getProductPrice(barcode));
}
}