com.anaptecs.jeaf.junit.impl.ValidationTestServiceImpl Maven / Gradle / Ivy
/*
* anaptecs GmbH, Ricarda-Huch-Str. 71, 72760 Reutlingen, Germany
*
* Copyright 2004 - 2019. All rights reserved.
*/
package com.anaptecs.jeaf.junit.impl;
import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.anaptecs.jeaf.core.api.Component;
import com.anaptecs.jeaf.core.spi.CheckLevel;
import com.anaptecs.jeaf.core.spi.CheckResult;
import com.anaptecs.jeaf.junit.ValidationTestObject;
/**
* Implementation of ValidationTestService.
*/
final class ValidationTestServiceImpl extends ValidationTestServiceImplBase {
/**
* Initialize object.
*/
ValidationTestServiceImpl( Component pComponent ) {
super(pComponent);
}
/**
* Method checks the current state of the service. Therefore JEAF defines three different check levels: internal
* Checks, infrastructure checks and external checks. For further details about the check levels {@see CheckLevel}.
*
*
* @param pLevel Check level on which the check should be performed. The parameter is never null.
* @return {@link CheckResult} Object describing the result of the check. The method may return null. This means that
* the service does not implement any checks. In order to use as less memory as possible the method should use the
* constant CheckResult.CHECK_OK if no errors or warnings occurred during the check.
*
* @see CheckResult#CHECK_OK
*/
public CheckResult check( CheckLevel pLevel ) {
// TODO Implement checks for this service
return null;
}
/**
*
* @param pString1
* @param pString2
* @return {@link String}
*/
@Override
@NotNull()
public String validateInNOutput( @NotNull() String pString1, @NotEmpty() String pString2 ) {
return null;
}
/**
*
* @param pString1
* @param pString2
* @return {@link String}
*/
@Override
@NotNull()
public String notValidOutput( String pString1, @NotEmpty() String pString2 ) {
return null;
}
/**
*
* @param pString1
* @param pString2
* @return {@link String}
*/
@Override
@NotNull()
public String validateOutputOnly( String pString1, String pString2 ) {
return null;
}
/**
*
* @param pString1
* @param pInteger
* @return {@link String}
*/
@Override
public String validateInputOnly( String pString1, @Min(value = 4711) int pInteger ) {
return null;
}
/**
*
* @param pString1
* @param pBool
* @return {@link String}
*/
@Override
public String noMethodValidation( String pString1, boolean pBool ) {
return null;
}
/**
*
* @param pTestObject
*/
@Override
public void createValidationTestObject( @Valid() ValidationTestObject pTestObject ) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy