This class does not implement Microsoft GUIDs. Instead, it is a convenience class which wraps the creation and comparison of unique identifiers.
8990919293949596
assertTrue(guid1.equals(guid1)); } @Test public void shouldRepresentItselfAsAString() throws Exception { GUID guid1 = new GUID("yay"); assertEquals("yay", guid1.toString()); }
131132133134135136137
public void setCurrency(Currency currency) { this.currencyCode = currency.getCurrencyCode(); } public GUID getGuid() { return new GUID(guid); }
151152153154155156157
assertEquals(Integer.valueOf(300), account.getId()); } @Test public void itHasAGUID() throws Exception { assertEquals(new GUID("0123456789"), account.getGuid()); }