EMMA Coverage Report (generated Mon Oct 17 05:41:20 EDT 2011)
[all classes][org.jclouds.servermanager]

COVERAGE SUMMARY FOR SOURCE FILE [Server.java]

nameclass, %method, %block, %line, %
Server.java50%  (1/2)25%  (2/8)30%  (49/166)22%  (1.8/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Server0%   (0/1)0%   (0/4)0%   (0/108)0%   (0/7)
Server (): void 0%   (0/1)0%   (0/3)0%   (0/2)
equals (Object): boolean 0%   (0/1)0%   (0/10)0%   (0/3)
hashCode (): int 0%   (0/1)0%   (0/52)0%   (0/1)
toString (): String 0%   (0/1)0%   (0/43)0%   (0/1)
     
class Server$Status100% (1/1)50%  (2/4)84%  (49/58)92%  (1.8/2)
valueOf (String): Server$Status 0%   (0/1)0%   (0/5)0%   (0/1)
values (): Server$Status [] 0%   (0/1)0%   (0/4)0%   (0/1)
<static initializer> 100% (1/1)100% (44/44)100% (2/2)
Server$Status (String, int): void 100% (1/1)100% (5/5)100% (1/1)

1/**
2 * Licensed to jclouds, Inc. (jclouds) under one or more
3 * contributor license agreements.  See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership.  jclouds licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License.  You may obtain a copy of the License at
9 *
10 *   http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied.  See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19package org.jclouds.servermanager;
20 
21import com.google.common.base.Objects;
22 
23/**
24 * This would be replaced with the real java object related to the underlying server
25 * 
26 * @author Adrian Cole
27 */
28public class Server {
29   public enum Status {
30      ACTIVE, BUILD, TERMINATED, UNRECOGNIZED
31 
32   }
33 
34   public int id;
35   public String name;
36   public Status status;
37   public String datacenter;
38   public int imageId;
39   public int hardwareId;
40   public String publicAddress;
41   public String privateAddress;
42   public String loginUser;
43   public String password;
44 
45   @Override
46   public int hashCode() {
47      return Objects.hashCode(id, name, status, datacenter, imageId, hardwareId, publicAddress, privateAddress,
48            loginUser);
49   }
50 
51   @Override
52   public boolean equals(Object that) {
53      if (that == null)
54         return false;
55      return Objects.equal(this.toString(), that.toString());
56   }
57 
58   @Override
59   public String toString() {
60      return Objects.toStringHelper(this).add("id", id).add("name", name).add("status", status)
61            .add("datacenter", datacenter).add("imageId", imageId).add("hardwareId", hardwareId)
62            .add("publicAddress", publicAddress).add("privateAddress", privateAddress).add("loginUser", loginUser)
63            .toString();
64   }
65 
66}

[all classes][org.jclouds.servermanager]
EMMA 2.0.5312 (C) Vladimir Roubtsov