Commit 38492f58 authored by Tom Evans's avatar Tom Evans

OF-807: Fixup unit test for S2S validation

Initial tests included assertions for post-conditions that were not part
of the official API.
parent 37ecb41a
...@@ -41,7 +41,8 @@ public class StringUtilsTest { ...@@ -41,7 +41,8 @@ public class StringUtilsTest {
StringUtils.validateDomainName(domain); StringUtils.validateDomainName(domain);
fail("Domain should not be valid: " + domain); fail("Domain should not be valid: " + domain);
} catch (IllegalArgumentException iae) { } catch (IllegalArgumentException iae) {
assertEquals("Unexpected cause: " + iae.getMessage(), expectedCause, iae.getMessage()); // this is not part of the official API, so leave off for now
//assertEquals("Unexpected cause: " + iae.getMessage(), expectedCause, iae.getMessage());
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment