Examples of BodyType


Examples of org.apache.shindig.social.opensocial.model.BodyType

    assertEquals(canonical.getAge().intValue(), Integer.parseInt(result.get(
        Person.Field.AGE.toString()).get(0)));

    Map<String, List<String>> bodyMap = childNodesToMap(childNodeMap.get(
        Person.Field.BODY_TYPE.toString()).get(0));
    BodyType body = canonical.getBodyType();

    assertStringField(bodyMap, body.getBuild(), BodyType.Field.BUILD);
    assertStringField(bodyMap, body.getEyeColor(), BodyType.Field.EYE_COLOR);
    assertStringField(bodyMap, body.getHairColor(), BodyType.Field.HAIR_COLOR);
    assertFloatField(bodyMap, body.getHeight(), BodyType.Field.HEIGHT);
    assertFloatField(bodyMap, body.getWeight(), BodyType.Field.WEIGHT);

    assertStringListField(result, canonical.getBooks(), Person.Field.BOOKS);
    assertStringListField(result, canonical.getCars(), Person.Field.CARS);
    assertStringField(result, canonical.getChildren(), Person.Field.CHILDREN);
View Full Code Here

Examples of org.apache.shindig.social.opensocial.model.BodyType

    assertEquals(canonical.getAge().intValue(), Integer.parseInt(result.get(
        Person.Field.AGE.toString()).get(0)));

    Map<String, List<String>> bodyMap = childNodesToMap(childNodeMap.get(
        Person.Field.BODY_TYPE.toString()).get(0));
    BodyType body = canonical.getBodyType();

    assertStringField(bodyMap, body.getBuild(), BodyType.Field.BUILD);
    assertStringField(bodyMap, body.getEyeColor(), BodyType.Field.EYE_COLOR);
    assertStringField(bodyMap, body.getHairColor(), BodyType.Field.HAIR_COLOR);
    assertFloatField(bodyMap, body.getHeight(), BodyType.Field.HEIGHT);
    assertFloatField(bodyMap, body.getWeight(), BodyType.Field.WEIGHT);

    assertStringListField(result, canonical.getBooks(), Person.Field.BOOKS);
    assertStringListField(result, canonical.getCars(), Person.Field.CARS);
    assertStringField(result, canonical.getChildren(), Person.Field.CHILDREN);
View Full Code Here

Examples of org.apache.shindig.social.opensocial.model.BodyType

    assertEquals(canonical.getAge().intValue(), result.getInt(
        Person.Field.AGE.toString()));

    JSONObject jsonBody = result.getJSONObject(
        Person.Field.BODY_TYPE.toString());
    BodyType body = canonical.getBodyType();
    assertStringField(jsonBody, body.getBuild(), BodyType.Field.BUILD);
    assertStringField(jsonBody, body.getEyeColor(), BodyType.Field.EYE_COLOR);
    assertStringField(jsonBody, body.getHairColor(), BodyType.Field.HAIR_COLOR);
    assertFloatField(jsonBody, body.getHeight(), BodyType.Field.HEIGHT);
    assertFloatField(jsonBody, body.getWeight(), BodyType.Field.WEIGHT);

    assertStringListField(result, canonical.getBooks(), Person.Field.BOOKS);
    assertStringListField(result, canonical.getCars(), Person.Field.CARS);
    assertStringField(result, canonical.getChildren(), Person.Field.CHILDREN);
View Full Code Here

Examples of org.apache.shindig.social.opensocial.model.BodyType

    assertEquals(canonical.getAge().intValue(), Integer.parseInt(result.get(
        Person.Field.AGE.toString()).get(0)));

    Map<String, List<String>> bodyMap = childNodesToMap(childNodeMap.get(
        Person.Field.BODY_TYPE.toString()).get(0));
    BodyType body = canonical.getBodyType();

    assertStringField(bodyMap, body.getBuild(), BodyType.Field.BUILD);
    assertStringField(bodyMap, body.getEyeColor(), BodyType.Field.EYE_COLOR);
    assertStringField(bodyMap, body.getHairColor(), BodyType.Field.HAIR_COLOR);
    assertFloatField(bodyMap, body.getHeight(), BodyType.Field.HEIGHT);
    assertFloatField(bodyMap, body.getWeight(), BodyType.Field.WEIGHT);

    assertStringListField(result, canonical.getBooks(), Person.Field.BOOKS);
    assertStringListField(result, canonical.getCars(), Person.Field.CARS);
    assertStringField(result, canonical.getChildren(), Person.Field.CHILDREN);
View Full Code Here

Examples of org.apache.shindig.social.opensocial.model.BodyType

    assertEquals(canonical.getAge().intValue(), result.getInt(
        Person.Field.AGE.toString()));

    JSONObject jsonBody = result.getJSONObject(
        Person.Field.BODY_TYPE.toString());
    BodyType body = canonical.getBodyType();
    assertStringField(jsonBody, body.getBuild(), BodyType.Field.BUILD);
    assertStringField(jsonBody, body.getEyeColor(), BodyType.Field.EYE_COLOR);
    assertStringField(jsonBody, body.getHairColor(), BodyType.Field.HAIR_COLOR);
    assertFloatField(jsonBody, body.getHeight(), BodyType.Field.HEIGHT);
    assertFloatField(jsonBody, body.getWeight(), BodyType.Field.WEIGHT);

    assertStringListField(result, canonical.getBooks(), Person.Field.BOOKS);
    assertStringListField(result, canonical.getCars(), Person.Field.CARS);
    assertStringField(result, canonical.getChildren(), Person.Field.CHILDREN);
View Full Code Here

Examples of org.apache.shindig.social.opensocial.model.BodyType

    }
    return email;
  }

  private BodyType getNewBodyType(int i) {
    BodyType bodyType = findOne(BodyTypeDb.FINDBY_HEIGHT, new String[] { BodyTypeDb.PARAM_HEIGHT },
        new Object[] { new Float(i % 10) });
    if (bodyType == null) {
      bodyType = new BodyTypeDb();
      bodyType.setBuild("Build " + i);
      bodyType.setEyeColor("Build " + i);
      bodyType.setHairColor("Build " + i);
      bodyType.setHeight(new Float(i % 10));
      bodyType.setWeight(new Float(i % 15));
    }
    return bodyType;
  }
View Full Code Here

Examples of org.apache.shindig.social.opensocial.model.BodyType

    assertEquals(canonical.getAge().intValue(), Integer.parseInt(result.get(
        Person.Field.AGE.toString()).get(0)));

    Map<String, List<String>> bodyMap = childNodesToMap(childNodeMap.get(
        Person.Field.BODY_TYPE.toString()).get(0));
    BodyType body = canonical.getBodyType();

    assertStringField(bodyMap, body.getBuild(), BodyType.Field.BUILD);
    assertStringField(bodyMap, body.getEyeColor(), BodyType.Field.EYE_COLOR);
    assertStringField(bodyMap, body.getHairColor(), BodyType.Field.HAIR_COLOR);
    assertFloatField(bodyMap, body.getHeight(), BodyType.Field.HEIGHT);
    assertFloatField(bodyMap, body.getWeight(), BodyType.Field.WEIGHT);

    assertStringListField(result, canonical.getBooks(), Person.Field.BOOKS);
    assertStringListField(result, canonical.getCars(), Person.Field.CARS);
    assertStringField(result, canonical.getChildren(), Person.Field.CHILDREN);
View Full Code Here

Examples of org.apache.shindig.social.opensocial.model.BodyType

    assertEquals(canonical.getAge().intValue(), result.getInt(
        Person.Field.AGE.toString()));

    JSONObject jsonBody = result.getJSONObject(
        Person.Field.BODY_TYPE.toString());
    BodyType body = canonical.getBodyType();
    assertStringField(jsonBody, body.getBuild(), BodyType.Field.BUILD);
    assertStringField(jsonBody, body.getEyeColor(), BodyType.Field.EYE_COLOR);
    assertStringField(jsonBody, body.getHairColor(), BodyType.Field.HAIR_COLOR);
    assertFloatField(jsonBody, body.getHeight(), BodyType.Field.HEIGHT);
    assertFloatField(jsonBody, body.getWeight(), BodyType.Field.WEIGHT);

    assertStringListField(result, canonical.getBooks(), Person.Field.BOOKS);
    assertStringListField(result, canonical.getCars(), Person.Field.CARS);
    assertStringField(result, canonical.getChildren(), Person.Field.CHILDREN);
View Full Code Here

Examples of org.apache.shindig.social.opensocial.model.BodyType

    assertEquals(canonical.getAge().intValue(), result.getInt(
        Person.Field.AGE.toString()));

    JSONObject jsonBody = result.getJSONObject(
        Person.Field.BODY_TYPE.toString());
    BodyType body = canonical.getBodyType();
    assertStringField(jsonBody, body.getBuild(), BodyType.Field.BUILD);
    assertStringField(jsonBody, body.getEyeColor(), BodyType.Field.EYE_COLOR);
    assertStringField(jsonBody, body.getHairColor(), BodyType.Field.HAIR_COLOR);
    assertFloatField(jsonBody, body.getHeight(), BodyType.Field.HEIGHT);
    assertFloatField(jsonBody, body.getWeight(), BodyType.Field.WEIGHT);

    assertStringListField(result, canonical.getBooks(), Person.Field.BOOKS);
    assertStringListField(result, canonical.getCars(), Person.Field.CARS);
    assertStringField(result, canonical.getChildren(), Person.Field.CHILDREN);
View Full Code Here

Examples of org.xmlsoap.schemas.soap.envelope.BodyType

            {
                doomedFolders.addNewFolderId().setId(folderId);
                LOG.debug("Preparing to delete folder: {}", folderId);
            }
        }
        BodyType response = sendRequest(request);
        ResponseMessageType[] responses =
                response.getDeleteFolderResponse().getResponseMessages().getDeleteFolderResponseMessageArray();
        for (ResponseMessageType resp : responses)
        {
            if (resp.getResponseCode() != ResponseCodeType.NO_ERROR)
            {
                LOG.debug(response.toString());
                throw new FailedToDeleteMessage(
                        "ResponseCode some sort of error: " + resp.getResponseCode());
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.