@Test public final void testGetGUIDString() { try { final GUID guid16 = GUIDReader.getGUID(BASE16); final GUID guid32 = GUIDReader.getGUID(BASE32); final GUID guid64 = GUIDReader.getGUID(BASE64); final GUID guidArk = GUIDReader.getGUID(ARK); assertEquals(guid32, guid64); assertEquals(guid32, guid16); assertEquals(guid16, guid64); assertEquals(guid32, guidArk); assertEquals(guid16, guidArk); assertEquals(guid64, guidArk); } catch (final InvalidGuidOperationException e) { LOGGER.error(ResourcesPublicUtilTest.SHOULD_NOT_HAVE_AN_EXCEPTION, e); fail(ResourcesPublicUtilTest.SHOULD_NOT_HAVE_AN_EXCEPTION); } try { GUIDReader.getGUID((String) null); fail(ResourcesPublicUtilTest.SHOULD_HAVE_AN_EXCEPTION); } catch (final InvalidGuidOperationException e) { } try { GUIDReader.getGUID(""); fail(ResourcesPublicUtilTest.SHOULD_HAVE_AN_EXCEPTION); } catch (final InvalidGuidOperationException e) { } try { GUIDReader.getGUID("aa"); fail(ResourcesPublicUtilTest.SHOULD_HAVE_AN_EXCEPTION); } catch (final InvalidGuidOperationException e) { } try { GUIDReader.getGUID("Attempted to parse malformed GUID: ("); fail(ResourcesPublicUtilTest.SHOULD_HAVE_AN_EXCEPTION); } catch (final InvalidGuidOperationException e) { } }
public static final GUID getGUID(String guid) throws InvalidGuidOperationException { return new GUIDImpl(guid); }
GUIDReader { public static final GUID getGUID(String guid) throws InvalidGuidOperationException { return new GUIDImpl(guid); } }
GUIDReader { public static final GUID getGUID(String guid) throws InvalidGuidOperationException { return new GUIDImpl(guid); } private  GUIDReader(); }
GUIDReader { public static final GUID getGUID(String guid) throws InvalidGuidOperationException { return new GUIDImpl(guid); } private  GUIDReader(); static final GUID getGUID(String guid); static final GUID getGUIDUnsafe(String guid); static final GUID getGUID(byte[] guid); }
GUIDReader { public static final GUID getGUID(String guid) throws InvalidGuidOperationException { return new GUIDImpl(guid); } private  GUIDReader(); static final GUID getGUID(String guid); static final GUID getGUIDUnsafe(String guid); static final GUID getGUID(byte[] guid);  }