mirror of
https://github.com/google/nomulus
synced 2026-09-05 15:46:55 +00:00
Rename PricingEngine to PremiumPricingEngine
This properly reflects the fact that other, separate things will now be responsible both for EAP and for per-TLD custom pricing. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=124558165
This commit is contained in:
committed by
Justine Tunney
parent
366c5a344d
commit
6ba1d5e6df
@@ -26,7 +26,7 @@ import static org.joda.money.CurrencyUnit.USD;
|
||||
|
||||
import com.google.common.collect.ImmutableSortedMap;
|
||||
|
||||
import google.registry.model.pricing.PricingEngine;
|
||||
import google.registry.model.pricing.PremiumPricingEngine;
|
||||
import google.registry.model.registry.Registry;
|
||||
import google.registry.model.registry.label.PremiumList;
|
||||
import google.registry.testing.AppEngineRule;
|
||||
@@ -147,7 +147,7 @@ public class PricingEngineProxyTest {
|
||||
public void testFailure_cantLoadPricingEngine() throws Exception {
|
||||
createTld("example");
|
||||
persistResource(
|
||||
Registry.get("example").asBuilder().setPricingEngineClass(FakePricingEngine.class).build());
|
||||
Registry.get("example").asBuilder().setPremiumPricingEngineClass(FakePricingEngine.class).build());
|
||||
thrown.expect(
|
||||
IllegalStateException.class,
|
||||
String.format(
|
||||
@@ -156,5 +156,5 @@ public class PricingEngineProxyTest {
|
||||
getDomainCreateCost("bad.example", clock.nowUtc(), 1);
|
||||
}
|
||||
|
||||
private abstract static class FakePricingEngine implements PricingEngine {}
|
||||
private abstract static class FakePricingEngine implements PremiumPricingEngine {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user