/** 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); }
/** 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); }
/** 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); }
/** 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); }
@Before public void setUp() { try { testBean = IdAddressBean.parse(testURA); } catch (Exception e) { // Silently fail for now } }
/** 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); }