Skip to content

Commit

Permalink
[enhancement] add_method_for_schemachange (apache#31849)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjj2010 authored Mar 8, 2024
1 parent 322c82c commit f17b841
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,17 @@ class Suite implements GroovyInterceptable {
}
}


void expectException(Closure userFunction, String tableName, String errorMessage = null) {
try {
userFunction()
} catch (Exception e) {
if (e.getMessage()!= errorMessage) {
throw e
}
}
}

String getBrokerName() {
String brokerName = context.config.otherConfigs.get("brokerName")
return brokerName
Expand Down

0 comments on commit f17b841

Please sign in to comment.