Package name.abuchen.portfolio.datatransfer.CSVImportDefinition

Examples of name.abuchen.portfolio.datatransfer.CSVImportDefinition.SecurityDef


    @Test
    public void testThatSecurityIsImported() throws ParseException
    {
        Client client = buildClient();

        SecurityDef def = new SecurityDef();

        def.build(client, Messages.CSVDefSecurityMasterData, //
                        new String[] { "DE0008404005", "ALV.DE", "840400", "Allianz", "" }, //
                        buildField2Column(def));

        Security s = client.getSecurities().get(client.getSecurities().size() - 1);
        assertThat(s.getName(), is("Allianz"));
View Full Code Here


    {
        try
        {
            Client client = buildClient();

            SecurityDef def = new SecurityDef();

            def.build(client, Messages.CSVDefSecurityMasterData, //
                            new String[] { "DE0007164600", "", "", "SAP AG", "" }, //
                            buildField2Column(def));

            Assert.fail("Expected an exception about missing security identifier");
        }
View Full Code Here

    {
        try
        {
            Client client = buildClient();

            SecurityDef def = new SecurityDef();

            def.build(client, Messages.CSVDefSecurityMasterData, //
                            new String[] { "something" }, //
                            new HashMap<String, Column>());

            Assert.fail("Expected an exception about missing security identifier");
        }
View Full Code Here

TOP

Related Classes of name.abuchen.portfolio.datatransfer.CSVImportDefinition.SecurityDef

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.