Examples of AgentDetailsService


Examples of za.co.javajoe.services.AgentDetailsService

    public ExpectedException exception = ExpectedException.none();

    @Test
    public void testgetUniqueAgentDetails() throws Exception{

        AgentDetailsService agentDetailsService = new AgentDetailsService() ;
        Map<String, String> agentNewDetailsMap = new HashMap<String, String>();;
        HSSFSheet worksheet =  ConfigUtil.loadExcelSheet();
        assertNotNull( worksheet);
        List<AgentDetails> collection = JoeUtil.mapExacelToObject(worksheet);
        assertNotNull( collection);

        agentNewDetailsMap = agentDetailsService.getUniqueAgentDetails(collection);
        assertNotNull(agentNewDetailsMap);



View Full Code Here

Examples of za.co.javajoe.services.AgentDetailsService

    }

   @Test
    public void testreplaceAgentIDWithDetails() throws Exception{

        AgentDetailsService agentDetailsService = new AgentDetailsService() ;
        List<AgentDetails> ultimateList = new ArrayList<AgentDetails>();

        Map<String, String> agentNewDetailsMap = new HashMap<String, String>();;
        HSSFSheet worksheet =  ConfigUtil.loadExcelSheet();
        assertNotNull( worksheet);
        List<AgentDetails> collection = JoeUtil.mapExacelToObject(worksheet);
        assertNotNull( collection);

        agentNewDetailsMap = agentDetailsService.getUniqueAgentDetails(collection);
        assertNotNull(agentNewDetailsMap);

        ultimateList = agentDetailsService.replaceAgentIDWithDetails(collection,agentNewDetailsMap);
        assertNotNull(ultimateList);

       System.out.println("==============================================");

        for(AgentDetails item:ultimateList){
View Full Code Here

Examples of za.co.javajoe.services.AgentDetailsService


    @Test
    public void  testUltimatelyProduceAgentDetialsCSVFile() throws Exception{

        AgentDetailsService agentDetailsService = new AgentDetailsService() ;
        List<AgentDetails> ultimateList = new ArrayList<AgentDetails>();

        Map<String, String> agentNewDetailsMap = new HashMap<String, String>();;

        HSSFSheet worksheet =  ConfigUtil.loadExcelSheet();
        assertNotNull( worksheet);
        List<AgentDetails> collection = JoeUtil.mapExacelToObject(worksheet);
        assertNotNull( collection);

        agentNewDetailsMap = agentDetailsService.getUniqueAgentDetails(collection);
        assertNotNull(agentNewDetailsMap);

        ultimateList = agentDetailsService.replaceAgentIDWithDetails(collection,agentNewDetailsMap);
        assertNotNull( ultimateList);

        Map<AgentDetailsFileKeys, Object> agentFileArgMap = new HashMap<AgentDetailsFileKeys, Object>();

        agentFileArgMap.put( AgentDetailsFileKeys.AGENT_DETAILS_LIST, ultimateList);
View Full Code Here
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.