@Override protected Object propertyGet(Bean bean, String propertyName, boolean quiet) { switch (propertyName.hashCode()) { case 664377527: // quoteId return ((Quote) bean).getQuoteId(); case 111972721: // value return ((Quote) bean).getValue(); } return super.propertyGet(bean, propertyName, quiet); }
public void test_of_QuoteId() throws Exception { Quote test = Quote.of(QUOTE_ID_1, 1.234); assertEquals(test.getQuoteId(), QUOTE_ID_1); assertEquals(test.getValue(), 1.234); }