Package name.abuchen.portfolio.model

Examples of name.abuchen.portfolio.model.Client


    }

    @Test
    public void testChangesOnFirstDayOfInvestment()
    {
        Client client = new Client();

        new AccountBuilder() //
                        .deposit_("2012-01-01", 10000) //
                        .interest("2012-01-02", 1000) //
                        .addTo(client);
View Full Code Here


public class GroupByTaxonomyTest
{
    @Test
    public void testThatSecuritiesAreGroupedIntoClassifications()
    {
        Client client = new Client();

        Taxonomy taxonomy = new TaxonomyBuilder() //
                        .addClassification("debt") //
                        .addClassification("equity") //
                        .addClassification("realestate") //
View Full Code Here

    }

    @Test
    public void testThatPartialAssignmentsAreSeparated()
    {
        Client client = new Client();

        Taxonomy taxonomy = new TaxonomyBuilder() //
                        .addClassification("debt") //
                        .addClassification("equity") //
                        .addTo(client);
View Full Code Here

    }

    @Test
    public void testThatPartialAssignmentsInSubClassificationsAreMerged()
    {
        Client client = new Client();

        Taxonomy taxonomy = new TaxonomyBuilder() //
                        .addClassification("debt") //
                        .addClassification("debt", "cat1") //
                        .addClassification("debt", "cat2") //
View Full Code Here

    }

    @Test
    public void testSecuritiesWithoutAssignment()
    {
        Client client = new Client();

        Taxonomy taxonomy = new TaxonomyBuilder() //
                        .addClassification("debt") //
                        .addTo(client);
View Full Code Here

    }

    @Test
    public void testSecuritiesWithPartialAssignment()
    {
        Client client = new Client();

        Taxonomy taxonomy = new TaxonomyBuilder() //
                        .addClassification("debt") //
                        .addTo(client);
View Full Code Here

        DateMidnight endDate = new DateMidnight(2013, 4, 1);
        long startPrice = 100 * Values.Amount.factor();

        // create model

        Client client = new Client();

        new AccountBuilder() //
                        .deposit_(startDate, startPrice) //
                        .addTo(client);

View Full Code Here

        DateMidnight middleDate = new DateMidnight(2013, 2, 18);
        DateMidnight endDate = new DateMidnight(2013, 4, 1);

        // create model

        Client client = new Client();

        new AccountBuilder() //
                        .deposit_(startDate, 100 * Values.Amount.factor()) //
                        .interest(startDate.plusDays(10), 10 * Values.Amount.factor()) //
                        .addTo(client);
View Full Code Here

        DateMidnight middleDate = new DateMidnight(2013, 2, 18);
        DateMidnight endDate = new DateMidnight(2013, 3, 31);

        // create model

        Client client = new Client();

        new AccountBuilder() //
                        .deposit_(startDate, 100 * Values.Amount.factor()) //
                        .interest(startDate.plusDays(10), 10 * Values.Amount.factor()) //
                        .addTo(client);
View Full Code Here

        DateMidnight startDate = new DateMidnight(2012, 12, 31);
        DateMidnight endDate = new DateMidnight(2013, 3, 31);

        // create model

        Client client = new Client();

        new AccountBuilder() //
                        .deposit_(startDate, 100 * Values.Amount.factor()) //
                        .addTo(client);

        Security security = new Security();
        client.addSecurity(security);

        // calculate performance indices

        List<Exception> warnings = new ArrayList<Exception>();

View Full Code Here

TOP

Related Classes of name.abuchen.portfolio.model.Client

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.