private static final String PASSWD = "tomtom";
public void run() throws Exception {
- Client client = new Client("192.168.10.202", "othello");
+ Client client = new Client("hal", "othello");
+
+/*
+ System.out.println("client.echoStruct() = " + client.echoStruct());
+ System.out.println("client.echoStructArray() = " + client.echoStructArray()[0]);
+ System.out.println("client.echoStructArray() = " + client.echoStructArray()[1]);
+*/
+ SiteStatsDataPoint[] stats = client.getSiteStats();
+ for (int i=0;i<stats.length; i++) {
+ System.out.println(stats[i]);
+ }
+ if (true) return;
+
System.out.println("projects = " + client.getNumberOfHostedProjects());
System.out.println("users = " + client.getNumberOfActiveUsers());
+ String[] projectNames = client.getPublicProjectNames();
+ for (int i=0;i<projectNames.length; i++) {
+ System.out.println("projectNames = " + projectNames[i]);
+ }
+
+
System.out.print("Testing: login/logout...");
testLogin(client);
System.out.println("OK");
// cool
}
}
- public static void main(String[] args) throws Exception {
- AcceptanceTest test = new AcceptanceTest();
- test.run();
+ public static void main(String[] args) {
+ try {
+ AcceptanceTest test = new AcceptanceTest();
+ test.run();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
}
}