mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
lldb reports weird objc-description for char* type. workaround for this in ProtobufFrontend. testValues fix.
This commit is contained in:
@@ -487,6 +487,16 @@ public abstract class UsefulTestCase extends TestCase {
|
||||
return ts[0];
|
||||
}
|
||||
|
||||
public static <T> void assertOneOf(T value, T... values) {
|
||||
boolean found = false;
|
||||
for (T v : values) {
|
||||
if (value == v || (value != null && value.equals(v))) {
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
Assert.assertTrue("" + value + " should be equal to one of " + Arrays.toString(values), found);
|
||||
}
|
||||
|
||||
public static void printThreadDump() {
|
||||
PerformanceWatcher.dumpThreadsToConsole("Thread dump:");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user