コード例 #1
0
 /** Test of getFullScheme method, of class IdAddressBean. */
 @Test
 public void testGetFullScheme() {
   System.out.println("getFullScheme");
   IdAddressBean instance = testBean;
   String expResult = "id.npid";
   String result = instance.getFullScheme();
   assertEquals(expResult, result);
 }
コード例 #2
0
 /** Test of getPath method, of class IdAddressBean. */
 @Test
 public void testGetPath() {
   System.out.println("getPath");
   IdAddressBean instance = testBean;
   String expResult = "995687676/16";
   String result = instance.getPath();
   assertEquals(expResult, result);
 }
コード例 #3
0
 /** Test of getURA method, of class IdAddressBean. */
 @Test
 public void testGetURA() {
   System.out.println("getURA");
   IdAddressBean instance = testBean;
   String expResult = testURA;
   String result = instance.getURA();
   assertEquals(expResult, result);
 }
コード例 #4
0
 /** Test of isIdAddressBean method, of class IdAddressBean. */
 @Test
 public void testIsIdAddressBean() {
   System.out.println("isIdAddressBean");
   String ura = "provider://id.npid/995687676";
   boolean expResult = true;
   boolean result = IdAddressBean.isIdAddressBean(ura);
   assertEquals(expResult, result);
 }
コード例 #5
0
 @Before
 public void setUp() {
   try {
     testBean = IdAddressBean.parse(testURA);
   } catch (Exception e) {
     // Silently fail for now
   }
 }
コード例 #6
0
 /** Test of parse method, of class IdAddressBean. */
 @Test
 public void testParse() throws Exception {
   System.out.println("parse");
   String ura = testURA;
   IdAddressBean expResult = testBean;
   IdAddressBean result = IdAddressBean.parse(ura);
   assertEquals(expResult, result);
 }