-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTestAssert.java
More file actions
32 lines (23 loc) · 953 Bytes
/
TestAssert.java
File metadata and controls
32 lines (23 loc) · 953 Bytes
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
package com.testcase;
import org.testng.Assert;
import org.testng.annotations.Test;
import com.mapper.CodeProperties;
import com.mapper.CodePropertiesLookup;
public class TestAssert {
@Test
public void testCaseIsoCode() throws InterruptedException {
CodeProperties isoCode = CodePropertiesLookup.getCodeProperties("XDR");
Assert.assertEquals(isoCode.getCurrencyCode(), "9601"); //---Exception
Assert.assertEquals(isoCode.getCurrencyName(), "SDR (Special Drawing Right)");
Assert.assertEquals(isoCode.getFractionDigits(), -1);
Assert.assertEquals(isoCode.getSymbol(), "XDR");
}
@Test
public void testCaseNumCode() {
CodeProperties numCode = CodePropertiesLookup.getCodeProperties("414");
Assert.assertEquals(numCode.getCurrencyCode(), "414");
Assert.assertEquals(numCode.getCurrencyName(), "Kuwaiti Dinar");
Assert.assertEquals(numCode.getFractionDigits(), 3);
Assert.assertEquals(numCode.getSymbol(), "KWD");
}
}