コード例 #1
0
 @Test
 public void getPrimaryKeyClass() throws Exception {
   assertEquals(Integer.class, mPaymentMethodPrimaryKey.getPrimaryKeyClass());
 }
コード例 #2
0
 @Test
 public void getPrimaryKeyValue() throws Exception {
   final int id = 55;
   when(mPaymentMethod.getId()).thenReturn(id);
   assertEquals(id, (int) mPaymentMethodPrimaryKey.getPrimaryKeyValue(mPaymentMethod));
 }
コード例 #3
0
 @Test
 public void getPrimaryKeyColumn() throws Exception {
   assertEquals("id", mPaymentMethodPrimaryKey.getPrimaryKeyColumn());
 }