# HG changeset patch
# User e085711
# Date 1315025228 -32400
# Node ID fc77596d306449f1f089c5f676fe9ae5fd24267c
# Parent 001f0b770f963fa6c6678ba2195a2f6ed4e3445b
add XMLRPCTest.java
diff -r 001f0b770f96 -r fc77596d3064 .classpath
--- a/.classpath Tue Aug 30 19:59:02 2011 +0900
+++ b/.classpath Sat Sep 03 13:47:08 2011 +0900
@@ -3,5 +3,11 @@
+
+
+
+
+
+
diff -r 001f0b770f96 -r fc77596d3064 src/myVncProxy/MyRfbProto.java
--- a/src/myVncProxy/MyRfbProto.java Tue Aug 30 19:59:02 2011 +0900
+++ b/src/myVncProxy/MyRfbProto.java Sat Sep 03 13:47:08 2011 +0900
@@ -26,7 +26,6 @@
import myVncProxy.MulticastQueue.Client;
import java.util.concurrent.ExecutorService;
-import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.zip.DataFormatException;
import java.util.zip.Deflater;
@@ -230,7 +229,7 @@
if (serverMajor < 3) {
throw new IOException(
- "RFB server does not support protocol version 3");
+ "RFB server does not support protocol version 3");
}
if (serverMinor == 998) {
diff -r 001f0b770f96 -r fc77596d3064 src/test/XMLRPCTest.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/test/XMLRPCTest.java Sat Sep 03 13:47:08 2011 +0900
@@ -0,0 +1,177 @@
+package test;
+
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.xmlrpc.XmlRpcException;
+import org.apache.xmlrpc.client.XmlRpcClient;
+import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
+
+public class XMLRPCTest {
+ protected static final String META_WEBLOG_NEW_POST = "metaWeblog.newPost";
+ protected static final String META_WEBLOG_EDIT_POST = "metaWeblog.editPost";
+
+ public String getBlogid(String username,String password, String url) throws Exception {
+
+ XmlRpcClient client = createClient(url);
+
+ List