Add localhost assertions to regexPatternsSpec

This commit is contained in:
Adam Wojszczyk
2015-08-10 11:49:35 +02:00
parent e0436ace9f
commit f3efc6b9dd

View File

@@ -24,11 +24,13 @@ class RegexPatternsSpec extends Specification {
expect:
shouldMatch == Pattern.compile(regexPatterns.hostname()).matcher(textToMatch).matches()
where:
textToMatch || shouldMatch
'https://asd.com' || true
'https://asd.com:8080' || true
'https://asd.com/asd' || false
'asd.com' || false
textToMatch || shouldMatch
'https://asd.com' || true
'https://asd.com:8080' || true
'https://localhost' || true
'https://localhost:8080' || true
'https://asd.com/asd' || false
'asd.com' || false
}
@Unroll