// Path: src/cn/com/jautoitx/TreeView.java
// public static enum IsChecked {
// 	/* checked */
// 	CHECKED(1),
// 
// 	/* unchecked */
// 	UNCHECKED(0),
// 
// 	/* not a checkbox */
// 	NOT_A_CHECKBOX(-1);
// 
// 	private int status = 0;
// 
// 	private IsChecked(final int status) {
// 		this.status = status;
// 	}
// 
// 	public int getStatus() {
// 		return status;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		String result = null;
// 		switch (this) {
// 		case CHECKED:
// 			result = "checked";
// 			break;
// 		case UNCHECKED:
// 			result = "unchecked";
// 			break;
// 		default:
// 			result = "not a checkbox";
// 		}
// 		return result;
// 	}
// }


import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeItem;
import org.junit.Assert;
import org.junit.Test;
import cn.com.jautoitx.TreeView.IsChecked;

					"节\\|点3"));
			Assert.assertNull(TreeView
					.getText(title, "SysTreeView321", "节`|点3"));
			Assert.assertEquals("节点4",
					TreeView.getText(title, "SysTreeView321", "节点4"));
			Assert.assertNull(TreeView.getText(title, "SysTreeView321", "节点5"));
			Assert.assertEquals("节点1",
					TreeView.getText(title, "SysTreeView321", "#0"));
			Assert.assertEquals("节点2",
					TreeView.getText(title, "SysTreeView321", "#1"));
			Assert.assertEquals("2A",
					TreeView.getText(title, "SysTreeView321", "#1|#0"));
			Assert.assertEquals("2B",
					TreeView.getText(title, "SysTreeView321", "#1|#1"));
			Assert.assertNull(TreeView
					.getText(title, "SysTreeView321", "#1|#2"));
			Assert.assertEquals("节|点3",
					TreeView.getText(title, "SysTreeView321", "#2"));
			Assert.assertEquals("节点4",
					TreeView.getText(title, "SysTreeView321", "#3"));
			Assert.assertNull(TreeView.getText(title, "SysTreeView321", "#4"));
		} finally {
			destroyDefaultDisplay(title);
		}
	}

	@Test
	public void isChecked() {
		String title = "TreeView.isChecked - " + System.currentTimeMillis();
		Assert.assertFalse(TreeView.isChecked(title, "SysTreeView321", "节点2"));

// Path: src/cn/com/jautoitx/TreeView.java
// public static enum IsChecked {
// 	/* checked */
// 	CHECKED(1),
// 
// 	/* unchecked */
// 	UNCHECKED(0),
// 
// 	/* not a checkbox */
// 	NOT_A_CHECKBOX(-1);
// 
// 	private int status = 0;
// 
// 	private IsChecked(final int status) {
// 		this.status = status;
// 	}
// 
// 	public int getStatus() {
// 		return status;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		String result = null;
// 		switch (this) {
// 		case CHECKED:
// 			result = "checked";
// 			break;
// 		case UNCHECKED:
// 			result = "unchecked";
// 			break;
// 		default:
// 			result = "not a checkbox";
// 		}
// 		return result;
// 	}
// }


// Path: test/cn/com/jautoitx/TreeViewTest.java
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeItem;
import org.junit.Assert;
import org.junit.Test;
import cn.com.jautoitx.TreeView.IsChecked;

					"节\\|点3"));
			Assert.assertNull(TreeView
					.getText(title, "SysTreeView321", "节`|点3"));
			Assert.assertEquals("节点4",
					TreeView.getText(title, "SysTreeView321", "节点4"));
			Assert.assertNull(TreeView.getText(title, "SysTreeView321", "节点5"));
			Assert.assertEquals("节点1",
					TreeView.getText(title, "SysTreeView321", "#0"));
			Assert.assertEquals("节点2",
					TreeView.getText(title, "SysTreeView321", "#1"));
			Assert.assertEquals("2A",
					TreeView.getText(title, "SysTreeView321", "#1|#0"));
			Assert.assertEquals("2B",
					TreeView.getText(title, "SysTreeView321", "#1|#1"));
			Assert.assertNull(TreeView
					.getText(title, "SysTreeView321", "#1|#2"));
			Assert.assertEquals("节|点3",
					TreeView.getText(title, "SysTreeView321", "#2"));
			Assert.assertEquals("节点4",
					TreeView.getText(title, "SysTreeView321", "#3"));
			Assert.assertNull(TreeView.getText(title, "SysTreeView321", "#4"));
		} finally {
			destroyDefaultDisplay(title);
		}
	}

	@Test
	public void isChecked() {
		String title = "TreeView.isChecked - " + System.currentTimeMillis();
		Assert.assertFalse(TreeView.isChecked(title, "SysTreeView321", "节点2"));

		Assert.assertEquals(IsChecked.NOT_A_CHECKBOX,
