Search in sources :

Example 11 with ParameterElement

use of org.asqatasun.entity.parameterization.ParameterElement in project Asqatasun by Asqatasun.

the class ParameterDAOImplTest method testFindDefaultParameter.

public void testFindDefaultParameter() {
    ParameterElement paramElement = parameterElementDAO.read(Long.valueOf(1));
    Parameter param = parameterDAO.findDefaultParameter(paramElement);
    assertEquals(Long.valueOf(1), param.getId());
    paramElement = parameterElementDAO.read(Long.valueOf(2));
    param = parameterDAO.findDefaultParameter(paramElement);
    assertEquals(Long.valueOf(5), param.getId());
}
Also used : Parameter(org.asqatasun.entity.parameterization.Parameter) ParameterElement(org.asqatasun.entity.parameterization.ParameterElement)

Aggregations

ParameterElement (org.asqatasun.entity.parameterization.ParameterElement)11 Parameter (org.asqatasun.entity.parameterization.Parameter)9 ParameterElementImpl (org.asqatasun.entity.parameterization.ParameterElementImpl)2 ParameterFamily (org.asqatasun.entity.parameterization.ParameterFamily)2 HashSet (java.util.HashSet)1 NoResultException (javax.persistence.NoResultException)1 NonUniqueResultException (javax.persistence.NonUniqueResultException)1 Query (javax.persistence.Query)1 ParameterFamilyImpl (org.asqatasun.entity.parameterization.ParameterFamilyImpl)1 ParameterImpl (org.asqatasun.entity.parameterization.ParameterImpl)1 ParameterDataService (org.asqatasun.entity.service.parameterization.ParameterDataService)1 WebResourceDataService (org.asqatasun.entity.service.subject.WebResourceDataService)1 OptionElement (org.asqatasun.webapp.entity.option.OptionElement)1 StatisticsDataService (org.asqatasun.webapp.entity.service.statistics.StatisticsDataService)1