Ejemplo n.º 1
0
  /**
   * Converts a mutable bo to it's immutable counterpart
   *
   * @param bo the mutable business object
   * @return the immutable object
   */
  public static KrmsTypeDefinition to(KrmsTypeBo bo) {
    if (bo == null) {
      return null;
    }

    return KrmsTypeDefinition.Builder.create(bo).build();
  }
Ejemplo n.º 2
0
 @Test
 public void test_KrmsTypeDefinition_set_validation_id_success_null() {
   KrmsTypeDefinition.Builder builder = KrmsTypeDefinition.Builder.create(NAME, NAMESPACE);
   builder.setId(null);
 }
Ejemplo n.º 3
0
 @Test(expected = java.lang.IllegalArgumentException.class)
 public void test_KrmsTypeDefinition_set_validation_id_fail_empty() {
   KrmsTypeDefinition.Builder builder = KrmsTypeDefinition.Builder.create(NAME, NAMESPACE);
   builder.setId("");
 }
Ejemplo n.º 4
0
 @Test(expected = java.lang.IllegalArgumentException.class)
 public void test_KrmsTypeDefinition_set_validation_namespace_fail_whitespace() {
   KrmsTypeDefinition.Builder builder = KrmsTypeDefinition.Builder.create(NAME, NAMESPACE);
   builder.setNamespace("    ");
 }
Ejemplo n.º 5
0
 @Test(expected = java.lang.IllegalArgumentException.class)
 public void test_KrmsTypeDefinition_Builder_create_fail_all_null() {
   KrmsTypeDefinition.Builder.create(null, null);
 }
Ejemplo n.º 6
0
 public static KrmsTypeDefinition buildFullKrmsTypeDefinition() {
   KrmsTypeDefinition.Builder builder = KrmsTypeDefinition.Builder.create(NAME, NAMESPACE);
   builder.setId(ID);
   KrmsTypeDefinition krmsTypeDefinition = builder.build();
   return krmsTypeDefinition;
 }
Ejemplo n.º 7
0
 @Test
 public void test_KrmsTypeDefinition_Builder_create_and_build() {
   KrmsTypeDefinition.Builder builder = KrmsTypeDefinition.Builder.create(NAME, NAMESPACE);
   builder.build();
 }
Ejemplo n.º 8
0
 @Test
 public void test_KrmsTypeDefinition_Builder_create() {
   KrmsTypeDefinition.Builder.create(NAME, NAMESPACE);
 }