PatchInputValidatorTestExpander

Expands:


    $componentRoot.directory$/$layerDir$/gen_test/jaxrs/src/$dataElement.packageName;format="toPath"$/validation/$dataElement.name;format="firstToLower"$
  /$dataElement.name$PatchInputValidatorTest.java

if:

dataElement.component.getOption('enableJaxrs').defined and
    dataElement.component.getOption('enableValidation').defined and
    dataElement.getOption('includeJaxrsConnector').defined and
    dataElement.getOption('exposePatchEndpoint').defined
property value
element type DataElement
qualified name net.democritus.expander.rest.control.test.PatchInputValidatorTestExpander
layer CONTROL_LAYER
technology JAXRS
sourceType JAVA
phase expansion
features  

Example

Some example of the content generated by the expander:

// expanded with nsx-expanders:4.16.3, expansionResource net.democritus:rest-expanders:2.4.2
package net.animals.validation.catBreed;

import net.animals.model.catBreed.CatBreedPatchInputModel;

import animals.validation.ValidationResult;

import net.democritus.sys.Context;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;


import static animals.ValidationErrorMatchers.validationError;
import static animals.validation.ValidationError.*;

import static org.hamcrest.CoreMatchers.hasItem;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;

// @anchor:imports:start
// @anchor:imports:end
// anchor:custom-imports:start
// anchor:custom-imports:end

public class CatBreedPatchInputValidatorTest {

  private CatBreedPatchInputValidator validator;
  private CatBreedPatchInputModel model;

  // @anchor:fields:start
  // @anchor:fields:end
  // anchor:custom-fields:start
  // anchor:custom-fields:end

  @Before
  public void before() {
    validator = new CatBreedPatchInputValidator(Context.emptyContext());
    model = new CatBreedPatchInputModel();

    // @anchor:before:start
    // @anchor:before:end
    // anchor:custom-before:start
    // anchor:custom-before:end
  }

  @After
  public void after() {
    // @anchor:after:start
    // @anchor:after:end
    // anchor:custom-after:start
    // anchor:custom-after:end
  }


  // @anchor:methods:start
  // @anchor:methods:end
  // anchor:custom-methods:start
  // anchor:custom-methods:end

}

These expanders have the same isApplicable as PatchInputValidatorTestExpander.