mirror of
https://github.com/google/nomulus.git
synced 2025-07-11 21:48:18 +02: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:
parent
366c5a344d
commit
6ba1d5e6df
11 changed files with 45 additions and 52 deletions
|
@ -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 {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue