Package org.xrace.model.importation.puces

Examples of org.xrace.model.importation.puces.ImportationPuces


  private void createTestImportation() throws Exception
  {
    Compte compte = getCompteService().findByUserName("thegoon@fqsc.net");
    EnsemblePuces ensemble = getEnsemblePucesService().findByCode(
        "20100330-01");
    ImportationPuces importation = getImportationPucesService()
        .newImportation(compte, ensemble, new Date());

    File file = new ClassPathResource(
        "org/xrace/service/importation/puces/importation_puces-cas_normal.csv")
        .getFile();

    FileInputStream fis = new FileInputStream(file);
    Resource resource = new Resource("file.csv", "csv", "Le fichier 1");
    getResourceService().upload(fis, resource);
    fis.close();

    importation.setImportFile(resource);

    getImportationPucesService().load(importation);
  }
View Full Code Here

TOP

Related Classes of org.xrace.model.importation.puces.ImportationPuces

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.