/*******************************************************************************
* Copyright (c) 2012 Google, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Google, Inc. - initial API and implementation
*******************************************************************************/
package com.windowtester.runtime.swt.internal.widgets.display.runnables;
import java.util.List;
import com.windowtester.runtime.swt.internal.widgets.DisplayReference;
import junit.framework.TestCase;
public class SafeRunnableTest
//extends TestCase
{
// DisplayReference display = DisplayReference.getDefault();
//
// public void testBoolean() throws Exception {
// boolean result = display.syncExec(new BooleanRunnable() {
// public Boolean run() {
// throw new RuntimeException();
// }
// });
// assertFalse(result);
// }
//
// public void testList() throws Exception {
// List<String> result = display.syncExec(new ListRunnable<String>() {
// public List<String> run() {
// throw new RuntimeException();
// }
// });
// assertNotNull(result);
// }
//
// public void testArray() throws Exception {
// String[] result = display.syncExec(new StringArrayRunnable() {
// public String[] run() {
// throw new RuntimeException();
// }
// });
// assertNotNull(result);
// }
//
// public void testVoid() throws Exception {
// display.syncExec(new VoidRunnable() {
// public void run() {
// throw new RuntimeException();
// }
// });
// //no exception means pass
// }
//
// public void testInteger() throws Exception {
// int result = display.syncExec(new IntegerRunnable() {
// public Integer run() {
// throw new RuntimeException();
// }
// });
// assertEquals(0, result);
// }
//
// public void testString() throws Exception {
// String result = display.syncExec(new StringRunnable() {
// public String run() {
// throw new RuntimeException();
// }
// });
// assertEquals("", result);
// }
// TODO[pq]: ReflectedString, Widget
}