Package com.ilegra.domain

Examples of com.ilegra.domain.DomainDataFile


    String[] row = null;
   
    DomainResults result = new DomainResults();
   
    while ((row = csvReader.readNext()) != null) {
        DomainDataFile domain = FactoryDataFile.getInstance().getDomain(row);
        domain.parse(row);
        domains.add(domain);
       
        /**
         * Results
         */
 
View Full Code Here


   * @param row String[]
   * @return {@link DomainDataFile} Domain to be used by CSV Reader
   */
  public DomainDataFile getDomain(String[] row) {
   
    DomainDataFile domain = null;
   
   
    if (checkType(row)) {
     
      switch (Integer.valueOf(row[TYPE_POSITION])) {
View Full Code Here

     
      ArrayList<DomainDataFile> dataFile = instance.getLastDataFiles();
      Assert.assertNotNull("Import fail", dataFile);
      Assert.assertTrue("Import fail", dataFile.size() > 0);
     
      DomainDataFile domainSalesman = dataFile.get(0);
      Assert.assertTrue(domainSalesman instanceof DomainSalesman);
     
      DomainDataFile domainSalesman1 = dataFile.get(1);
      Assert.assertTrue(domainSalesman1 instanceof DomainSalesman);
     
      DomainDataFile domainCostumer = dataFile.get(2);
      Assert.assertTrue(domainCostumer instanceof DomainCostumer);
     
      DomainSales domainSales = (DomainSales) dataFile.get(5);
      Assert.assertTrue(domainSales instanceof DomainSales);
     
View Full Code Here

   * {@link DomainDataFile}
   */
  @Test
  public void testGetDomain() {

    DomainDataFile decorator = null;
   
    try {
     
      String[] row = ImportFile.getCSVReader(FILE_DIR_TYPE_1).readNext();
      decorator = FactoryDataFile.getInstance().getDomain(row);
View Full Code Here

   * {@link DomainSalesman}
   */
  @Test
  public void testGetDomainSalesman() {

    DomainDataFile decorator = null;
   
    try {
     
      String[] row = ImportFile.getCSVReader(FILE_DIR_TYPE_1).readNext();
      decorator = FactoryDataFile.getInstance().getDomain(row);
View Full Code Here

   * {@link DomainCostumer}
   */
  @Test
  public void testGetDomainCostumer() {

    DomainDataFile decorator = null;
   
    try {
     
      String[] row = ImportFile.getCSVReader(FILE_DIR_TYPE_2).readNext();
      decorator = FactoryDataFile.getInstance().getDomain(row);
View Full Code Here

   * {@link DomainSales}
   */
  @Test
  public void testGetDomainSales() {

    DomainDataFile decorator = null;
   
    try {
     
      String[] row = ImportFile.getCSVReader(FILE_DIR_TYPE_3).readNext();
      decorator = FactoryDataFile.getInstance().getDomain(row);
View Full Code Here

TOP

Related Classes of com.ilegra.domain.DomainDataFile

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.