Package com.tcs.hrr.junit

Source Code of com.tcs.hrr.junit.RequirementStatusTest

package com.tcs.hrr.junit;

import org.springframework.test.AbstractDependencyInjectionSpringContextTests;

import com.tcs.hrr.dao.RequirementStatusDAO;
import com.tcs.hrr.domain.RequirementStatus;
import com.tcs.hrr.util.Constant;
import org.junit.Test;

public class RequirementStatusTest extends AbstractDependencyInjectionSpringContextTests{
 
  RequirementStatusDAO dao;
  public RequirementStatusDAO getDao() {
    return dao;
  }
  public void setDao(RequirementStatusDAO dao) {
    this.dao = dao;
  }
  public String[] getConfigLocations() {
    String[] configLocations = {
        "file:WebContent/WEB-INF/conf/spring/applicationContext-service.xml",
        "file:WebContent/WEB-INF/conf/spring/applicationContext-dao.xml" };
    return configLocations;
  }
 
  @Test
  public void testGetObjectByValue(){
    RequirementStatus status = (RequirementStatus)(dao.findByValue(Constant.REQUIREMENT_STATUS_OPEN).get(0));
    System.out.println(status.getValue()+status.getRequirementStatusId());
  }
}
TOP

Related Classes of com.tcs.hrr.junit.RequirementStatusTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.