public void assertViewDefinitionCompilationFailed(long timeoutMillis) {
assertViewDefinitionCompilationFailed(timeoutMillis, null);
}
public void assertViewDefinitionCompilationFailed(long timeoutMillis, String exceptionMessage) {
ViewDefinitionCompilationFailedCall call;
try {
call = getViewDefinitionCompilationFailed(timeoutMillis);
} catch (Exception e) {
throw new AssertionError("Expected viewDefinitionCompilationFailed call error: " + e.getMessage());
}
if (exceptionMessage != null) {
assertEquals(exceptionMessage, call.getException().getMessage());
}
}