public BillingExceptionBase(final BillingExceptionBase cause) { this.formattedMsg = cause.getMessage(); this.code = cause.getCode(); this.cause = cause; }
public PaymentPluginApiException(final String errorType, BillingExceptionBase billingExceptionBase) { this.errorMessage = billingExceptionBase.getMessage(); this.errorType = errorType; }
@Override public int hashCode() { int result = objectType != null ? objectType.hashCode() : 0; result = 31 * result + (name != null ? name.hashCode() : 0); return result; } }
private TableName getTableNameFromObjectType(final ObjectType objectType) { for (final TableName tableName : TableName.values()) { if (objectType.equals(tableName.getObjectType())) { return tableName; } } return null; } }
@Override protected void configure() { super.configure(); final EmbeddedDB instance = DBTestingHelper.get(); bind(EmbeddedDB.class).toInstance(instance); try { bind(DataSource.class).toInstance(DBTestingHelper.get().getDataSource()); bind(IDBI.class).toInstance(DBTestingHelper.getDBI()); } catch (IOException e) { Assert.fail(e.toString()); } } }
@Override public boolean apply(final TagModelDao input) { return objectType.equals(input.getObjectType()); } }));
@Override public boolean apply(final AuditLog auditLog) { return objectType.equals(auditLog.getAuditedObjectType()); } };
@Override public String apply(@Nullable final ObjectType input) { if (input == null) { return ""; } else { return input.toString(); } } })),
@Override protected void configure() { super.configure(); installDBI(); } }
@Override @BeforeMethod(groups = "slow") public void beforeMethod() throws Exception { super.beforeMethod(); eventsReceived = 0; }
@Override public int hashCode() { int result = customFieldId != null ? customFieldId.hashCode() : 0; result = 31 * result + (objectId != null ? objectId.hashCode() : 0); result = 31 * result + (objectType != null ? objectType.hashCode() : 0); return result; } }
public static TableName fromObjectType(final ObjectType objectType) { for (final TableName tableName : values()) { if (tableName.getObjectType() != null && tableName.getObjectType().equals(objectType)) { return tableName; } } return null; }
public EntitlementApiException(final BillingExceptionBase e) { super(e, e.getCode(), e.getMessage()); }
@Override public int hashCode() { int result = objectType != null ? objectType.hashCode() : 0; result = 31 * result + (name != null ? name.hashCode() : 0); result = 31 * result + (value != null ? value.hashCode() : 0); return result; } }
public SubscriptionApiException(final BillingExceptionBase e) { super(e, e.getCode(), e.getMessage()); }
@Override public int hashCode() { int result = customFieldId != null ? customFieldId.hashCode() : 0; result = 31 * result + (objectId != null ? objectId.hashCode() : 0); result = 31 * result + (objectType != null ? objectType.hashCode() : 0); result = 31 * result + (name != null ? name.hashCode() : 0); result = 31 * result + (value != null ? value.hashCode() : 0); return result; } }
@Override public int hashCode() { int result = tagId != null ? tagId.hashCode() : 0; result = 31 * result + (objectType != null ? objectType.hashCode() : 0); result = 31 * result + (tagDefinitionId != null ? tagDefinitionId.hashCode() : 0); result = 31 * result + (tagDefinitionName != null ? tagDefinitionName.hashCode() : 0); return result; } }