Searched refs:isSubDomain (Results 1 – 2 of 2) sorted by relevance
81 assertEquals(DomainMatcher.MATCH_NONE, domainMatcher.isSubDomain("google.com")); in createMatcherWithEmptyDomains()93 assertEquals(DomainMatcher.MATCH_NONE, domainMatcher.isSubDomain(null)); in matchNullDomain()106 assertEquals(entry.getValue().intValue(), domainMatcher.isSubDomain(entry.getKey())); in matchTestDomains()120 assertEquals(DomainMatcher.MATCH_PRIMARY, domainMatcher.isSubDomain(PRIMARY_DOMAIN)); in matchDomainWithBothPrimaryAndSecondary()133 assertEquals(DomainMatcher.MATCH_PRIMARY, domainMatcher.isSubDomain("google.com")); in matchDomainWhenSecondaryIsSubdomainOfPrimary()134 assertEquals(DomainMatcher.MATCH_PRIMARY, domainMatcher.isSubDomain("test.google.com")); in matchDomainWhenSecondaryIsSubdomainOfPrimary()136 domainMatcher.isSubDomain("abcd.test.google.com")); in matchDomainWhenSecondaryIsSubdomainOfPrimary()149 assertEquals(DomainMatcher.MATCH_SECONDARY, domainMatcher.isSubDomain("google.com")); in matchDomainWhenPrimaryIsSubdomainOfSecondary()150 assertEquals(DomainMatcher.MATCH_SECONDARY, domainMatcher.isSubDomain("test2.google.com")); in matchDomainWhenPrimaryIsSubdomainOfSecondary()151 assertEquals(DomainMatcher.MATCH_PRIMARY, domainMatcher.isSubDomain("test.google.com")); in matchDomainWhenPrimaryIsSubdomainOfSecondary()[all …]
158 public int isSubDomain(String domainName) { in isSubDomain() method in DomainMatcher