16 package com.mapd.tests;
18 import ai.heavy.thrift.server.TDashboard;
21 public static interface TestRun {
void run()
throws Exception; }
24 if (a.equals(b))
return;
25 throw new RuntimeException(
"assert failed:\nExpected: " + a +
"\n got: " + b);
30 throw new RuntimeException(
"assert failed:\nExpected: " + a +
"\n got: " + b);
36 assertEqual(name +
"_meta", db.getDashboard_metadata());
44 }
catch (Exception e) {
49 throw new RuntimeException(msg);
static void shouldThrowException(String msg, TestRun test)
static void assertEqual(String name, TDashboard db)
static void assertEqual(Object a, Object b)
static void assertEqual(int a, int b)