Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2013 Ning, Inc.
   *
   * Ning licenses this file to you under the Apache License, version 2.0
   * (the "License"); you may not use this file except in compliance with the
   * License.  You may obtain a copy of the License at:
   *
   *    http://www.apache.org/licenses/LICENSE-2.0
   *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
  * License for the specific language governing permissions and limitations
  * under the License.
  */
 
 package com.ning.billing.osgi.bundles.analytics.dao.model;
 
 
 
 
     @Test(groups = "fast")
     public void testConstructorWithNullPaymentMethod() throws Exception {
         final BusinessInvoicePaymentModelDao invoicePaymentModelDao = new BusinessInvoicePaymentModelDao(,
                                                                                                          ,
                                                                                                          ,
                                                                                                          ,
                                                                                                          ,
                                                                                                          ,
                                                                                                          ,
                                                                                                          null,
                                                                                                          ,
                                                                                                          ,
                                                                                                          );
         verifyCommonFields(invoicePaymentModelDao);
         Assert.assertEquals(invoicePaymentModelDao.getPluginName(), .);
         Assert.assertNull(invoicePaymentModelDao.getPluginCreatedDate());
         Assert.assertNull(invoicePaymentModelDao.getPluginEffectiveDate());
         Assert.assertNull(invoicePaymentModelDao.getPluginStatus());
         Assert.assertNull(invoicePaymentModelDao.getPluginGatewayError());
         Assert.assertNull(invoicePaymentModelDao.getPluginGatewayErrorCode());
         Assert.assertNull(invoicePaymentModelDao.getPluginFirstReferenceId());
         Assert.assertNull(invoicePaymentModelDao.getPluginSecondReferenceId());
         Assert.assertNull(invoicePaymentModelDao.getPluginPmId());
         Assert.assertNull(invoicePaymentModelDao.getPluginPmIsDefault());
         Assert.assertNull(invoicePaymentModelDao.getPluginPmType());
         Assert.assertNull(invoicePaymentModelDao.getPluginPmCcName());
         Assert.assertNull(invoicePaymentModelDao.getPluginPmCcType());
         Assert.assertNull(invoicePaymentModelDao.getPluginPmCcExpirationMonth());
         Assert.assertNull(invoicePaymentModelDao.getPluginPmCcExpirationYear());
         Assert.assertNull(invoicePaymentModelDao.getPluginPmCcLast4());
         Assert.assertNull(invoicePaymentModelDao.getPluginPmAddress1());
         Assert.assertNull(invoicePaymentModelDao.getPluginPmAddress2());
         Assert.assertNull(invoicePaymentModelDao.getPluginPmCity());
         Assert.assertNull(invoicePaymentModelDao.getPluginPmState());
         Assert.assertNull(invoicePaymentModelDao.getPluginPmZip());
         Assert.assertNull(invoicePaymentModelDao.getPluginPmCountry());
     }
 
     @Test(groups = "fast")
     public void testConstructorWithNullRefund() throws Exception {
         final BusinessInvoicePaymentModelDao invoicePaymentModelDao = new BusinessInvoicePaymentModelDao(,
                                                                                                          ,
                                                                                                          ,
                                                                                                          ,
                                                                                                          ,
                                                                                                          ,
                                                                                                          null,
                                                                                                          ,
                                                                                                          ,
                                                                                                          ,
                                                                                                          );
         verifyCommonFields(invoicePaymentModelDao);
     }
 
     @Test(groups = "fast")
     public void testConstructor() throws Exception {
         final BusinessInvoicePaymentModelDao invoicePaymentModelDao = new BusinessInvoicePaymentModelDao(,
                                                                                                          ,
                                                                                                          ,
                                                                                                          ,
                                                                                                          ,
                                                                                                          ,
                                                                                                          ,
                                                                                                          ,
                                                                                                          ,
                                                                                                          ,
                                                                                                          );
         verifyCommonFields(invoicePaymentModelDao);
     }
 
     private void verifyCommonFields(final BusinessInvoicePaymentModelDao invoicePaymentModelDao) {
         verifyBusinessModelDaoBase(invoicePaymentModelDao);
         Assert.assertEquals(invoicePaymentModelDao.getCreatedDate(), .getCreatedDate());
         Assert.assertEquals(invoicePaymentModelDao.getInvoicePaymentRecordId(), );
        Assert.assertEquals(invoicePaymentModelDao.getInvoicePaymentId(), .getId());
        Assert.assertEquals(invoicePaymentModelDao.getInvoiceId(), .getId());
        Assert.assertEquals(invoicePaymentModelDao.getInvoiceNumber(), .getInvoiceNumber());
        Assert.assertEquals(invoicePaymentModelDao.getInvoiceCreatedDate(), .getCreatedDate());
        Assert.assertEquals(invoicePaymentModelDao.getInvoiceDate(), .getInvoiceDate());
        Assert.assertEquals(invoicePaymentModelDao.getInvoiceTargetDate(), .getTargetDate());
        Assert.assertEquals(invoicePaymentModelDao.getInvoiceCurrency(), .getCurrency().toString());
        Assert.assertEquals(invoicePaymentModelDao.getInvoiceBalance(), .getBalance());
        Assert.assertEquals(invoicePaymentModelDao.getInvoiceAmountPaid(), .getPaidAmount());
        Assert.assertEquals(invoicePaymentModelDao.getInvoiceAmountCharged(), .getChargedAmount());
        Assert.assertEquals(invoicePaymentModelDao.getInvoiceOriginalAmountCharged(), .getOriginalChargedAmount());
        Assert.assertEquals(invoicePaymentModelDao.getInvoiceAmountCredited(), .getCreditedAmount());
        Assert.assertEquals(invoicePaymentModelDao.getInvoiceAmountRefunded(), .getRefundedAmount());
        Assert.assertEquals(invoicePaymentModelDao.getInvoicePaymentType(), .getType().toString());
        Assert.assertEquals(invoicePaymentModelDao.getPaymentNumber(), (Long.getPaymentNumber().longValue());
        Assert.assertEquals(invoicePaymentModelDao.getLinkedInvoicePaymentId(), .getLinkedInvoicePaymentId());
        Assert.assertEquals(invoicePaymentModelDao.getAmount(), .getAmount());
        Assert.assertEquals(invoicePaymentModelDao.getCurrency(), .getCurrency().toString());
    }
New to GrepCode? Check out our FAQ X