diff src/alice/test/codesegment/api/TakeCodeSegment.java @ 128:9db7fcf98ee9 working

add ApiTest take
author sugi
date Mon, 06 Aug 2012 17:35:45 +0900
parents
children f151dea22b2c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/alice/test/codesegment/api/TakeCodeSegment.java	Mon Aug 06 17:35:45 2012 +0900
@@ -0,0 +1,19 @@
+package alice.test.codesegment.api;
+
+import alice.codesegment.CodeSegment;
+import alice.datasegment.CommandType;
+import alice.datasegment.Receiver;
+
+public class TakeCodeSegment extends CodeSegment {
+	
+	Receiver ds1 = ids.create(CommandType.TAKE);
+	
+	public TakeCodeSegment(){
+		this.ds1.setKey("num");
+	}	
+	@Override
+	public void run() {
+		new TakeCodeSegment();
+		
+	}
+}