Package aim.domain.policy

Examples of aim.domain.policy.PolicyType


        final Set<UserRoles> firstAgentUserRoles = new TreeSet<UserRoles>();
        firstAgentUserRoles.add(UserRoles.ROLE_AGENT);
        agent.setAssociatedRoles(firstAgentUserRoles);
        userDAO.persist(agent);

        final PolicyType policyTypeHouse = new PolicyType("HOUSE", "House insurance type");
        final PolicySeries houseSeriesOne = new PolicySeries("HOM");
        houseSeriesOne.setPolicyType(policyTypeHouse);
        policyTypeHouse.getTypeSeries().add(houseSeriesOne);
        policyTypeDAO.persistPolicyType(policyTypeHouse);

        for (long i = 1; i <= 5; i++) {
            final BlankPolicy blankPolicy = new BlankPolicy(new PolicyId(houseSeriesOne, i));
            blankPolicy.setInventoryPolicyState(BlankState.FILLED);
View Full Code Here


        assertTrue(retrivedEmptyBlankPolicyCount == 5);
    }

    @Test
    public void testFindNumbersOfExistingPolicies() {
        final PolicyType policyType = new PolicyType("Some Type 1", "Some Policy type #1");
        final PolicySeries policySeries = new PolicySeries("A11");
        policyType.getTypeSeries().add(policySeries);
        policySeries.setPolicyType(policyType);
        policyTypeDAO.persistPolicyType(policyType);

        final long beginNumber = 1;
        final long endNumber = 10;
View Full Code Here

        }
    }

    @Test
    public void testFindAgentsOfPolicies() {
        final PolicyType policyType = new PolicyType("Some Type 1", "Some Policy type #1");
        final PolicySeries policySeries = new PolicySeries("A11");
        policyType.getTypeSeries().add(policySeries);
        policySeries.setPolicyType(policyType);
        policyTypeDAO.persistPolicyType(policyType);

        final long beginNumber = 1;
        final long endNumber = 10;
View Full Code Here

        assertEquals(secondEmployee.getFirstName(), policiesAgents.get(1).getFirstName());
    }

    @Test
    public void testFindNumbersOfAgentPolicies() {
        final PolicyType policyType = new PolicyType("Some Type 12", "Some Policy type #12");
        final PolicySeries policySeries = new PolicySeries("AD11");
        policyType.getTypeSeries().add(policySeries);
        policySeries.setPolicyType(policyType);
        policyTypeDAO.persistPolicyType(policyType);

        final long beginNumber = 1;
        final long endNumber = 15;
View Full Code Here

        }
    }

    @Test
    public void testWriteOffPolicies() {
        final PolicyType policyType = new PolicyType("Some Type 21", "Some Policy type #21");
        final PolicySeries policySeries = new PolicySeries("DF");
        policyType.getTypeSeries().add(policySeries);
        policySeries.setPolicyType(policyType);
        policyTypeDAO.persistPolicyType(policyType);

        final long beginNumber = 1;
        final long endNumber = 10;
View Full Code Here

        }
    }

    @Test
    public void testCheckForWriteoff() {
        final PolicyType policyType = new PolicyType("Some Type 2", "Some Policy type #2");
        final PolicySeries policySeries = new PolicySeries("B11");
        policyType.getTypeSeries().add(policySeries);
        policySeries.setPolicyType(policyType);
        policyTypeDAO.persistPolicyType(policyType);

        final long beginNumber = 1;
        final long endNumber = 10;
View Full Code Here

        assertEquals(policyCount / 2, policiesCount);
    }

    @Test
    public void testFindNumbersOfWriteOffPolicies() {
        final PolicyType policyType = new PolicyType("Some Type 3", "Some Policy type #3");
        final PolicySeries policySeries = new PolicySeries("C11");
        policyType.getTypeSeries().add(policySeries);
        policySeries.setPolicyType(policyType);
        policyTypeDAO.persistPolicyType(policyType);

        final long beginNumber = 1;
        final long endNumber = 10;
View Full Code Here

        }
    }

    @Test
    public void testFindNumbersOfEmptyPolicies() {
        final PolicyType policyType = new PolicyType("Some Type 4", "Some Policy type #4");
        final PolicySeries policySeries = new PolicySeries("D11");
        policyType.getTypeSeries().add(policySeries);
        policySeries.setPolicyType(policyType);
        policyTypeDAO.persistPolicyType(policyType);

        final long beginNumber = 1;
        final long endNumber = 10;
View Full Code Here

        }
    }

    @Test
    public void testReturnPolicies() {
        final PolicyType policyType = new PolicyType("Some Type 5", "Some Policy type #5");
        final PolicySeries policySeries = new PolicySeries("D11");
        policyType.getTypeSeries().add(policySeries);
        policySeries.setPolicyType(policyType);
        policyTypeDAO.persistPolicyType(policyType);

        final long beginNumber = 1;
        final long endNumber = 10;
View Full Code Here

    @Test
    @Ignore
    public void testFindBlankPoliciesForStatistic() throws ParseException {
        /* Create policy type, serie */
        final PolicyType policyType = new PolicyType("Some Type X", "Some Policy type X");
        final PolicySeries policySeries = new PolicySeries("X12");
        policyType.getTypeSeries().add(policySeries);
        policySeries.setPolicyType(policyType);
        policyTypeDAO.persistPolicyType(policyType);

        /* Creating blank policies */
        final long beginNumber = 1;
View Full Code Here

TOP

Related Classes of aim.domain.policy.PolicyType

Copyright © 2018 www.massapicom. 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.