APISonar


com.ning.billing.util.config.catalog.ValidationErrors.log

> com > ning > billing > util > config > catalog > ValidationErrors > log
com APIs ning APIs billing APIs util APIs config APIs catalog APIs ValidationErrors APIs log APIs

Example 1
public void testDateValidation() {
        final StandaloneCatalog c = new MockCatalog();
        c.setSupportedCurrencies(new Currency[]{Currency.GBP, Currency.EUR, Currency.USD, Currency.BRL, Currency.MXN});
        final DefaultPlan p1 = MockPlan.createBicycleTrialEvergreen1USD();
        p1.setEffectiveDateForExistingSubscriptons(new Date((new Date().getTime()) - (1000 * 60 * 60 * 24)));
        final ValidationErrors errors = p1.validate(c, new ValidationErrors());
        Assert.assertEquals(errors.size(), 1);
        errors.log(log);
    }