From 2070456c6020027eda70cba93feee56712ec5066 Mon Sep 17 00:00:00 2001 From: "ivan@ivan.net.nz" Date: Wed, 25 Nov 2009 22:10:44 +0000 Subject: [PATCH] Updated @author. git-svn-id: http://jclouds.googlecode.com/svn/trunk@2328 3d8758e0-26b5-11de-8745-db77d3ebf521 --- .../miro/binder/RimuHostingJsonBinder.java | 2 + .../binder/RimuHostingRebootJsonBinder.java | 2 + .../rimuhosting/miro/data/CloneOptions.java | 2 +- .../rimuhosting/miro/data/CreateOptions.java | 2 +- .../rimuhosting/miro/data/IpRequest.java | 2 +- .../rimuhosting/miro/data/PostData.java | 2 + .../rimuhosting/miro/domain/BillingData.java | 2 + .../rimuhosting/miro/domain/DataCenter.java | 2 + .../miro/domain/DataTransferAllowance.java | 2 + .../rimuhosting/miro/domain/Image.java | 2 + .../rimuhosting/miro/domain/Instance.java | 2 + .../rimuhosting/miro/domain/InstanceInfo.java | 4 +- .../rimuhosting/miro/domain/IpAddresses.java | 2 + .../miro/domain/NewInstanceResponse.java | 2 + .../rimuhosting/miro/domain/PricingPlan.java | 3 ++ .../domain/internal/RimuHostingError.java | 2 + .../domain/internal/RimuHostingResponse.java | 2 + .../domain/internal/RimuHostingTimestamp.java | 2 + .../miro/domain/internal/RunningState.java | 2 + .../miro/domain/internal/ServerType.java | 2 + .../filters/RimuHostingAuthentication.java | 2 + .../ParseDestroyResponseFromJsonResponse.java | 3 ++ .../ParseImagesFromJsonResponse.java | 3 ++ .../ParseInstanceFromJsonResponse.java | 3 ++ .../ParseInstanceInfoFromJsonResponse.java | 3 ++ .../ParseInstancesFromJsonResponse.java | 4 +- ...seNewInstanceResponseFromJsonResponse.java | 4 ++ .../ParsePricingPlansFromJsonResponse.java | 3 ++ .../ParseResizeResponseFromJsonResponse.java | 4 +- .../functions/ParseRimuHostingException.java | 2 + .../miro/RimuHostingClientLiveTest.java | 2 +- .../miro/RimuHostingComputeClient.java | 4 +- .../ParseStatusesFromJsonResponseTest.java | 50 ------------------- 33 files changed, 72 insertions(+), 58 deletions(-) delete mode 100644 rimuhosting/src/test/java/org/jclouds/rimuhosting/miro/functions/ParseStatusesFromJsonResponseTest.java diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/binder/RimuHostingJsonBinder.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/binder/RimuHostingJsonBinder.java index 44db97fb7c..2ba471f7f2 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/binder/RimuHostingJsonBinder.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/binder/RimuHostingJsonBinder.java @@ -34,6 +34,8 @@ import java.util.Map; * Generic binder for RimuHosting POSTS/PUTS. In the form of * * {"request":{...}} + * + * @author Ivan Meredith */ public class RimuHostingJsonBinder extends BindToJsonEntity { public void bindToRequest(HttpRequest request, Map postParams) { diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/binder/RimuHostingRebootJsonBinder.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/binder/RimuHostingRebootJsonBinder.java index de1db426c0..e464d2a4f7 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/binder/RimuHostingRebootJsonBinder.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/binder/RimuHostingRebootJsonBinder.java @@ -30,6 +30,8 @@ import org.jclouds.http.HttpRequest; * Need to PUT a static string * * {"request":{"running_state":"RESTARTING"} + * + * @author Ivan Meredith */ public class RimuHostingRebootJsonBinder extends RimuHostingJsonBinder{ public void bindToRequest(HttpRequest request, Object toBind) { diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/CloneOptions.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/CloneOptions.java index 7db753532d..8b2409b8ee 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/CloneOptions.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/CloneOptions.java @@ -28,7 +28,7 @@ import com.google.gson.annotations.SerializedName; /** * Options for a clone. * TODO: test and add contructors. - * @author Ivan Meredith + * @author Ivan Meredith */ public class CloneOptions implements PostData { /** diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/CreateOptions.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/CreateOptions.java index e1babce474..82d0f0e432 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/CreateOptions.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/CreateOptions.java @@ -29,7 +29,7 @@ import org.jclouds.rimuhosting.miro.domain.Image; /** * Some options we need to create a new server/VPS. * - * @author Ivan Meredith + * @author Ivan Meredith */ public class CreateOptions implements PostData{ public CreateOptions(){} diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/IpRequest.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/IpRequest.java index 5939b30d2d..984da987be 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/IpRequest.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/IpRequest.java @@ -29,7 +29,7 @@ import com.google.gson.annotations.SerializedName; * Number of IPs VPS needs.  In a separate data structure so that * at a later date we can add more IPs to a provisioned server. * - * @author Ivan Meredith <ivan@ivan.net.nz> + * @author Ivan Meredith */ public class IpRequest implements PostData { /** diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/PostData.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/PostData.java index 169b835230..3414dd5852 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/PostData.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/data/PostData.java @@ -25,6 +25,8 @@ package org.jclouds.rimuhosting.miro.data; /** * Do as much validation as possible to save http requests. No need to go overboard though. + * + * @author Ivan Meredith */ public interface PostData { public void validate(); diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/BillingData.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/BillingData.java index e0f1d76685..9d9275e8a6 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/BillingData.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/BillingData.java @@ -30,6 +30,8 @@ import java.sql.Timestamp; /** * Billing data. Need to make it inteface with jclouds. * TODO: test + * + * @author Ivan Meredith */ public class BillingData { @SerializedName("cancellation_date") diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/DataCenter.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/DataCenter.java index 9f88b26ea1..9703e08331 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/DataCenter.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/DataCenter.java @@ -27,6 +27,8 @@ import com.google.gson.annotations.SerializedName; /** * TODO: test + * + * @author Ivan Meredith */ public class DataCenter implements Comparable { @SerializedName("data_center_location_code") diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/DataTransferAllowance.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/DataTransferAllowance.java index b718fb3b49..ffdeea89fc 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/DataTransferAllowance.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/DataTransferAllowance.java @@ -27,6 +27,8 @@ import com.google.gson.annotations.SerializedName; /** * TODO: test + * + * @author Ivan Meredith */ public class DataTransferAllowance implements Comparable{ @SerializedName("data_transfer_gb") diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/Image.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/Image.java index 66bfea724c..07179cecf1 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/Image.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/Image.java @@ -27,6 +27,8 @@ import com.google.gson.annotations.SerializedName; /** * Image object. + * + * @author Ivan Meredith */ public class Image implements Comparable { @SerializedName("distro_code") diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/Instance.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/Instance.java index ff902d4aec..c0069caab8 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/Instance.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/Instance.java @@ -29,6 +29,8 @@ import org.jclouds.rimuhosting.miro.data.NewInstance; /** * Instance Object. * TODO: javadoc + * + * @author Ivan Meredith */ public class Instance implements Comparable { diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/InstanceInfo.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/InstanceInfo.java index 1e2a46aa68..a71fcab873 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/InstanceInfo.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/InstanceInfo.java @@ -27,7 +27,9 @@ import com.google.gson.annotations.SerializedName; import org.jclouds.rimuhosting.miro.domain.internal.RimuHostingTimestamp; import org.jclouds.rimuhosting.miro.domain.internal.RunningState; - +/** + * @author Ivan Meredith + */ public class InstanceInfo { /** * Whether the server pinged from the host server. diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/IpAddresses.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/IpAddresses.java index 91031eda5e..2e5e8592f8 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/IpAddresses.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/IpAddresses.java @@ -29,6 +29,8 @@ import java.util.SortedSet; /** * IpAddresses assigned to an Interface. Not rimuhosting doesnt have private IPs. + * + * @author Ivan Meredith */ public class IpAddresses { @SerializedName("primary_ip") diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/NewInstanceResponse.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/NewInstanceResponse.java index 216161c919..43bb94fe05 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/NewInstanceResponse.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/NewInstanceResponse.java @@ -29,6 +29,8 @@ import org.jclouds.rimuhosting.miro.data.NewInstance; /** * Wrapper object to get back all data from a Instance create. The Password has been populated the NewInstance * object. + * + * @author Ivan Meredith */ public class NewInstanceResponse implements Comparable { @SerializedName("about_order") diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/PricingPlan.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/PricingPlan.java index 7f93b710c0..f74de7f1be 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/PricingPlan.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/PricingPlan.java @@ -26,6 +26,9 @@ package org.jclouds.rimuhosting.miro.domain; import com.google.gson.annotations.SerializedName; import org.jclouds.rimuhosting.miro.domain.internal.ServerType; +/** + * @author Ivan Meredith + */ public class PricingPlan implements Comparable{ @SerializedName("minimum_data_transfer_allowance_gb") private Long dataTransfer; diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RimuHostingError.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RimuHostingError.java index 438c64b4e9..0813429afd 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RimuHostingError.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RimuHostingError.java @@ -27,6 +27,8 @@ import com.google.gson.annotations.SerializedName; /** * Error Object from a response + * + * @author Ivan Meredith */ public class RimuHostingError { @SerializedName("error_class") diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RimuHostingResponse.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RimuHostingResponse.java index 502494f316..29f2254eb2 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RimuHostingResponse.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RimuHostingResponse.java @@ -25,6 +25,8 @@ package org.jclouds.rimuhosting.miro.domain.internal; /** * Object that the payload on requests is wrapped in. + * + * @author Ivan Meredith */ public class RimuHostingResponse { private String status_message; diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RimuHostingTimestamp.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RimuHostingTimestamp.java index de2888f64f..044541c227 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RimuHostingTimestamp.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RimuHostingTimestamp.java @@ -27,6 +27,8 @@ import java.sql.Timestamp; /** * Handles a timestamp JSON object from rimuhosting + * + * @author Ivan Meredith */ public class RimuHostingTimestamp { private Long ms_since_epoch; diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RunningState.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RunningState.java index f0eb978fff..946e9402c9 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RunningState.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/RunningState.java @@ -26,6 +26,8 @@ package org.jclouds.rimuhosting.miro.domain.internal; /** * States an instance can be in. + * + * @author Ivan Meredith */ public enum RunningState { RUNNING, NOTRUNNING, RESTARTING, POWERCYCLING diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/ServerType.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/ServerType.java index d23029b48b..bb1f7027fd 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/ServerType.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/domain/internal/ServerType.java @@ -26,6 +26,8 @@ package org.jclouds.rimuhosting.miro.domain.internal; /** * Jclouds is only interested in VPS. + * + * @author Ivan Meredith */ public enum ServerType { PHYSICAL, VPS diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/filters/RimuHostingAuthentication.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/filters/RimuHostingAuthentication.java index bea824bcce..d2f867c295 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/filters/RimuHostingAuthentication.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/filters/RimuHostingAuthentication.java @@ -37,6 +37,8 @@ import java.util.List; * RimuHosting Authentication is a Authorization Header. * * Authorization: rimuhosting apikey=<key> + * + * @author Ivan Meredith */ @Singleton public class RimuHostingAuthentication implements HttpRequestFilter { diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseDestroyResponseFromJsonResponse.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseDestroyResponseFromJsonResponse.java index d914cf0b1f..877abac15c 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseDestroyResponseFromJsonResponse.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseDestroyResponseFromJsonResponse.java @@ -37,6 +37,9 @@ import java.lang.reflect.Type; import java.util.List; import java.util.Map; +/** + * @author Ivan Meredith + */ @Singleton public class ParseDestroyResponseFromJsonResponse extends ParseJson> { diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseImagesFromJsonResponse.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseImagesFromJsonResponse.java index c6cd27408d..844a0b16ce 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseImagesFromJsonResponse.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseImagesFromJsonResponse.java @@ -38,6 +38,9 @@ import java.lang.reflect.Type; import java.util.Map; import java.util.SortedSet; +/** + * @author Ivan Meredith + */ @Singleton public class ParseImagesFromJsonResponse extends ParseJson> { diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseInstanceFromJsonResponse.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseInstanceFromJsonResponse.java index b5afd52a27..8dd055aef8 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseInstanceFromJsonResponse.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseInstanceFromJsonResponse.java @@ -37,6 +37,9 @@ import java.io.UnsupportedEncodingException; import java.lang.reflect.Type; import java.util.Map; +/** + * @author Ivan Meredith + */ @Singleton public class ParseInstanceFromJsonResponse extends ParseJson { diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseInstanceInfoFromJsonResponse.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseInstanceInfoFromJsonResponse.java index 1889d0ffd3..3d87b2cac0 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseInstanceInfoFromJsonResponse.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseInstanceInfoFromJsonResponse.java @@ -37,6 +37,9 @@ import java.io.UnsupportedEncodingException; import java.lang.reflect.Type; import java.util.Map; +/** + * @author Ivan Meredith + */ @Singleton public class ParseInstanceInfoFromJsonResponse extends ParseJson { @Inject diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseInstancesFromJsonResponse.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseInstancesFromJsonResponse.java index 45e6d35731..a15725012a 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseInstancesFromJsonResponse.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseInstancesFromJsonResponse.java @@ -38,7 +38,9 @@ import java.lang.reflect.Type; import java.util.Map; import java.util.SortedSet; - +/** + * @author Ivan Meredith + */ @Singleton public class ParseInstancesFromJsonResponse extends ParseJson> { @Inject diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseNewInstanceResponseFromJsonResponse.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseNewInstanceResponseFromJsonResponse.java index 8914594d18..bd81a0d082 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseNewInstanceResponseFromJsonResponse.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseNewInstanceResponseFromJsonResponse.java @@ -37,6 +37,10 @@ import java.lang.reflect.Type; import java.util.Map; +/** + * @author Ivan Meredith + */ + @Singleton public class ParseNewInstanceResponseFromJsonResponse extends ParseJson { @Inject diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParsePricingPlansFromJsonResponse.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParsePricingPlansFromJsonResponse.java index 7b7eeb6a76..2b973724d6 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParsePricingPlansFromJsonResponse.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParsePricingPlansFromJsonResponse.java @@ -38,6 +38,9 @@ import java.lang.reflect.Type; import java.util.Map; import java.util.SortedSet; +/** + * @author Ivan Meredith + */ @Singleton public class ParsePricingPlansFromJsonResponse extends ParseJson> { @Inject diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseResizeResponseFromJsonResponse.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseResizeResponseFromJsonResponse.java index ac010114df..d9ebf5fe25 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseResizeResponseFromJsonResponse.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseResizeResponseFromJsonResponse.java @@ -36,7 +36,9 @@ import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.lang.reflect.Type; import java.util.Map; - +/** + * @author Ivan Meredith + */ @Singleton public class ParseResizeResponseFromJsonResponse extends ParseJson { @Inject diff --git a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseRimuHostingException.java b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseRimuHostingException.java index 72a2f9c53f..60fc62bfa6 100644 --- a/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseRimuHostingException.java +++ b/rimuhosting/src/main/java/org/jclouds/rimuhosting/miro/functions/ParseRimuHostingException.java @@ -38,6 +38,8 @@ import java.util.Map; * On non 2xx we have an error. RimuHosting using the same json base object. * * TODO: map exceptions out into something that suits jclouds. + * + * @author Ivan Meredith */ @Singleton public class ParseRimuHostingException implements Function { diff --git a/rimuhosting/src/test/java/org/jclouds/rimuhosting/miro/RimuHostingClientLiveTest.java b/rimuhosting/src/test/java/org/jclouds/rimuhosting/miro/RimuHostingClientLiveTest.java index b4877f94a0..be69dee874 100644 --- a/rimuhosting/src/test/java/org/jclouds/rimuhosting/miro/RimuHostingClientLiveTest.java +++ b/rimuhosting/src/test/java/org/jclouds/rimuhosting/miro/RimuHostingClientLiveTest.java @@ -38,7 +38,7 @@ import java.util.SortedSet; /** * Tests behavior of {@code RimuHostingClient} * - * @author Adrian Cole + * @author Ivan Meredith */ @Test(groups = "live", testName = "rimuhosting.RimuHostingClientLiveTest") public class RimuHostingClientLiveTest { diff --git a/rimuhosting/src/test/java/org/jclouds/rimuhosting/miro/RimuHostingComputeClient.java b/rimuhosting/src/test/java/org/jclouds/rimuhosting/miro/RimuHostingComputeClient.java index 4ca480b1c2..488d73de9a 100644 --- a/rimuhosting/src/test/java/org/jclouds/rimuhosting/miro/RimuHostingComputeClient.java +++ b/rimuhosting/src/test/java/org/jclouds/rimuhosting/miro/RimuHostingComputeClient.java @@ -35,7 +35,9 @@ import javax.annotation.Resource; import javax.inject.Inject; import java.net.InetSocketAddress; - +/** + * @author Ivan Meredith + */ public class RimuHostingComputeClient { @Resource protected Logger logger = Logger.NULL; diff --git a/rimuhosting/src/test/java/org/jclouds/rimuhosting/miro/functions/ParseStatusesFromJsonResponseTest.java b/rimuhosting/src/test/java/org/jclouds/rimuhosting/miro/functions/ParseStatusesFromJsonResponseTest.java deleted file mode 100644 index b9cdcb490d..0000000000 --- a/rimuhosting/src/test/java/org/jclouds/rimuhosting/miro/functions/ParseStatusesFromJsonResponseTest.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * - * Copyright (C) 2009 Cloud Conscious, LLC. - * - * ==================================================================== - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * ==================================================================== - */ -package org.jclouds.rimuhosting.miro.functions; - -import com.google.inject.Guice; -import com.google.inject.Injector; -import org.jclouds.http.functions.config.ParserModule; -import org.jclouds.util.DateService; -import org.testng.annotations.Test; - -/** - * Tests behavior of {@code ParseStatusesFromJsonResponse} - * - * @author Adrian Cole - */ -@Test(groups = "unit", testName = "twitter.ParseStatusesFromJsonResponseTest") -public class ParseStatusesFromJsonResponseTest { - - Injector i = Guice.createInjector(new ParserModule() { - @Override - protected void configure() { - bind(DateTimeAdapter.class).to(CDateTimeAdapter.class); - super.configure(); - } - }); - DateService dateService = new DateService(); - - -}