|
17 | 17 |
|
18 | 18 | package org.apache.cloudstack.dns; |
19 | 19 |
|
20 | | -import static org.apache.cloudstack.dns.DnsUtil.appendPublicSuffixToZone; |
21 | | -import static org.apache.cloudstack.dns.DnsUtil.normalizeDomain; |
| 20 | +import static org.apache.cloudstack.dns.DnsProviderUtil.appendPublicSuffixToZone; |
| 21 | +import static org.apache.cloudstack.dns.DnsProviderUtil.normalizeDomain; |
22 | 22 | import static org.junit.Assert.assertEquals; |
23 | 23 | import static org.junit.Assert.fail; |
24 | 24 |
|
|
31 | 31 | import org.junit.runners.Parameterized; |
32 | 32 |
|
33 | 33 | @RunWith(Parameterized.class) |
34 | | -public class DnsUtilTest { |
| 34 | +public class DnsProviderUtilTest { |
35 | 35 | private final String userZoneName; |
36 | 36 | private final String publicSuffix; |
37 | 37 | private final String expectedResult; |
38 | 38 | private final boolean expectException; |
39 | 39 |
|
40 | | - public DnsUtilTest(String userZoneName, |
41 | | - String publicSuffix, |
42 | | - String expectedResult, |
43 | | - boolean expectException) { |
| 40 | + public DnsProviderUtilTest(String userZoneName, |
| 41 | + String publicSuffix, |
| 42 | + String expectedResult, |
| 43 | + boolean expectException) { |
44 | 44 | this.userZoneName = userZoneName; |
45 | 45 | this.publicSuffix = publicSuffix; |
46 | 46 | this.expectedResult = expectedResult; |
@@ -96,8 +96,6 @@ public void testAppendPublicSuffix() { |
96 | 96 | } |
97 | 97 |
|
98 | 98 | String executeAppendSuffixTest(String zoneName, String domainSuffix) { |
99 | | - return appendPublicSuffixToZone( |
100 | | - normalizeDomain(zoneName), |
101 | | - normalizeDomain(domainSuffix)); |
| 99 | + return appendPublicSuffixToZone(normalizeDomain(zoneName), domainSuffix); |
102 | 100 | } |
103 | 101 | } |
0 commit comments