Add mock validation
This commit is contained in:
parent
fda5b6ca5c
commit
88bb4f3067
6 changed files with 78 additions and 51 deletions
|
@ -26,7 +26,7 @@ class ControlServerClient {
|
|||
throw new MockAlreadyExists()
|
||||
|
||||
}
|
||||
throw new InvalidMockDefinitionException(responseXml.text())
|
||||
throw new InvalidMockDefinition(responseXml.text())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@ import groovy.transform.TypeChecked
|
|||
|
||||
@CompileStatic
|
||||
@TypeChecked
|
||||
class InvalidMockDefinitionException extends RuntimeException {
|
||||
InvalidMockDefinitionException(String s) {
|
||||
class InvalidMockDefinition extends RuntimeException {
|
||||
InvalidMockDefinition(String s) {
|
||||
super(s)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue