Пример #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();
  }
Пример #2
0
 @Test
 public void test_KrmsTypeDefinition_set_validation_id_success_null() {
   KrmsTypeDefinition.Builder builder = KrmsTypeDefinition.Builder.create(NAME, NAMESPACE);
   builder.setId(null);
 }
Пример #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("");
 }
Пример #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("    ");
 }
Пример #5
0
 @Test(expected = java.lang.IllegalArgumentException.class)
 public void test_KrmsTypeDefinition_Builder_create_fail_all_null() {
   KrmsTypeDefinition.Builder.create(null, null);
 }
Пример #6
0
 public static KrmsTypeDefinition buildFullKrmsTypeDefinition() {
   KrmsTypeDefinition.Builder builder = KrmsTypeDefinition.Builder.create(NAME, NAMESPACE);
   builder.setId(ID);
   KrmsTypeDefinition krmsTypeDefinition = builder.build();
   return krmsTypeDefinition;
 }
Пример #7
0
 @Test
 public void test_KrmsTypeDefinition_Builder_create_and_build() {
   KrmsTypeDefinition.Builder builder = KrmsTypeDefinition.Builder.create(NAME, NAMESPACE);
   builder.build();
 }
Пример #8
0
 @Test
 public void test_KrmsTypeDefinition_Builder_create() {
   KrmsTypeDefinition.Builder.create(NAME, NAMESPACE);
 }