-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathFirstTestCase.java
More file actions
41 lines (32 loc) · 1.17 KB
/
FirstTestCase.java
File metadata and controls
41 lines (32 loc) · 1.17 KB
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
41
package com.testcase;
import javax.swing.JFrame;
import org.testng.annotations.Test;
import com.mapper.CodeProperties;
import com.mapper.CodePropertiesLookup;
public class FirstTestCase {
@Test
public void testCaseA() throws Exception {
JFrame frame = new JFrame("First Frame");
frame.setLocation(100, 100);
frame.setSize(300, 300);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Thread.sleep(10000);
}
@Test
public void testCasegetData() {
CodeProperties obj = CodePropertiesLookup.getCodeProperties("AOA");
System.out.println("Currency Code : " + obj.getCurrencyCode());
System.out.println("Currency Name : " + obj.getCurrencyName());
System.out.println("Fraction digit : " + obj.getFractionDigits());
System.out.println("Sysmbol : " + obj.getSymbol());
}
@Test
public void testCasegetDataTwo() {
CodeProperties obj = CodePropertiesLookup.getCodeProperties("XOF");
System.out.println("Currency Code : " + obj.getCurrencyCode());
System.out.println("Currency Name : " + obj.getCurrencyName());
System.out.println("Fraction digit : " + obj.getFractionDigits());
System.out.println("Sysmbol : " + obj.getSymbol());
}
}