Examples of VismaFileCreatorImpl


Examples of no.ugland.utransprod.service.impl.VismaFileCreatorImpl

    TakstolPackageVManager takstolPackageVManager = (TakstolPackageVManager) ModelUtil
        .getBean("takstolPackageVManager");
    OrdchgrHeadVManager ordchgrManager = (OrdchgrHeadVManager) ModelUtil
        .getBean(OrdchgrHeadVManager.MANAGER_NAME);
    VismaFileCreator vismaFileCreator = new VismaFileCreatorImpl(
        ordchgrManager, false);
   
    AccidentManager accidentManager=(AccidentManager)ModelUtil.getBean(AccidentManager.MANAGER_NAME);
    when(managerRepository.getAccidentManager()).thenReturn(accidentManager);
View Full Code Here

Examples of no.ugland.utransprod.service.impl.VismaFileCreatorImpl

  @Test
  public void testPackAndSendFileToVisma() throws Exception {
    Map<String, String> colliSetup = new HashMap<String, String>();
    colliSetup.put("Port", "Port");
    VismaFileCreator vismaFileCreator = new VismaFileCreatorImpl(
        ordchgrHeadVManager, false);
    ArticlePacker articlePacker = new ArticlePacker(
        colliViewHandlerProvider, colliSetup, vismaFileCreator);

    UserUtil.setUserTypeManagerForTest(userTypeManager);
View Full Code Here

Examples of no.ugland.utransprod.service.impl.VismaFileCreatorImpl

    };


    OrdchgrHeadVManager ordchgrHeadVManager = (OrdchgrHeadVManager) ModelUtil
        .getBean(OrdchgrHeadVManager.MANAGER_NAME);
    VismaFileCreator vismaFileCreator = new VismaFileCreatorImpl(
        ordchgrHeadVManager, false);
    final SetProductionUnitActionFactory setProductionUnitActionFactory = new SetProductionUnitActionFactory() {

      public SetProductionUnitAction create(ArticleType aArticleType,
          ProduceableProvider aProduceableProvider,
View Full Code Here

Examples of no.ugland.utransprod.service.impl.VismaFileCreatorImpl

public class VismaFileCreatorTest {

  @Test
  public void skalLageVismaFilForOrdreUtenTransport() throws IOException,
      ParseException {
    VismaFileCreatorImpl vismaFileCreator = new VismaFileCreatorImpl(null,
        false);
    Order ordre = new Order();
    OrdchgrHeadV head = new OrdchgrHeadV();
    head.setOrdNo(1);
    String fileName = vismaFileCreator.createTransportFile(ordre, head,
        "visma");
    assertNotNull(fileName);
    File file = new File("visma/" + fileName);
    assertEquals(true, file.exists());
    List<String> stringLines = FileUtils.readLines(file);
View Full Code Here

Examples of no.ugland.utransprod.service.impl.VismaFileCreatorImpl

  }

  @Test
  public void skalLageVismaFilForOrdreUtenLeveringsdatoOgUtenTransportAarOGUke()
      throws IOException, ParseException {
    VismaFileCreatorImpl vismaFileCreator = new VismaFileCreatorImpl(null,
        false);
    Order ordre = new Order();
    Transport transport = new Transport();
    ordre.setTransport(transport);
    OrdchgrHeadV head = new OrdchgrHeadV();
    head.setOrdNo(1);
    String fileName = vismaFileCreator.createTransportFile(ordre, head,
        "visma");
    assertNotNull(fileName);
    File file = new File("visma/" + fileName);
    assertEquals(true, file.exists());
    List<String> stringLines = FileUtils.readLines(file);
View Full Code Here

Examples of no.ugland.utransprod.service.impl.VismaFileCreatorImpl

  }

  @Test
  public void skalLageVismaFilForLeveringsdato() throws IOException,
      ParseException {
    VismaFileCreatorImpl vismaFileCreator = new VismaFileCreatorImpl(null,
        false);
    Order ordre = new Order();
    Transport transport = new Transport();
    transport.setLoadingDate(Util.DATE_FORMAT_YYYYMMDD.parse("20110929"));
    ordre.setTransport(transport);
    OrdchgrHeadV head = new OrdchgrHeadV();
    head.setOrdNo(1);
    String fileName = vismaFileCreator.createTransportFile(ordre, head,
        "visma");
    assertNotNull(fileName);
    File file = new File("visma/" + fileName);
    assertEquals(true, file.exists());
    List<String> stringLines = FileUtils.readLines(file);
View Full Code Here

Examples of no.ugland.utransprod.service.impl.VismaFileCreatorImpl

    ordchgrLine.setOrdchgrLineVPK(new OrdchgrLineVPK(1, 10));
    ordchgrLine.setLineStatus(20);
    final List<OrdchgrLineV> lines = new ArrayList<OrdchgrLineV>();
    lines.add(ordchgrLine);

    VismaFileCreatorImpl vismaFileCreator = new VismaFileCreatorImpl(null,
        false);
    String fileName = vismaFileCreator.createFile(ordchgrHead, lines, "1",
        "visma");

    File file = new File("visma/" + fileName);
    assertEquals(true, file.exists());
    List<String> stringLines = FileUtils.readLines(file);
View Full Code Here

Examples of no.ugland.utransprod.service.impl.VismaFileCreatorImpl

      }
    };
    routeViewHandler = new RouteViewHandler(orderViewHandlerFactory, login,
        managerRepository, deviationViewHandlerFactory,
        showTakstolInfoActionFactory,
        new VismaFileCreatorImpl((OrdchgrHeadVManager) ModelUtil
            .getBean(OrdchgrHeadVManager.MANAGER_NAME), false));
    final RouteView view = new RouteView(routeViewHandler);

    JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
      protected JDialog executeInEDT() {
View Full Code Here

Examples of no.ugland.utransprod.service.impl.VismaFileCreatorImpl

      protected JDialog executeInEDT() {
        Transport transport = new Transport();
        TransportViewHandler transportViewHandler = new TransportViewHandler(
            orderViewHandlerFactory, login, managerRepository,
            deviationViewHandlerFactory, showTakstolInfoActionFactory,
            new VismaFileCreatorImpl(null, true));

        final EditTransportView editTransportView = new EditTransportView(
            transportViewHandler, transport, false);

        JDialog dialog = new JDialog();
View Full Code Here

Examples of no.ugland.utransprod.service.impl.VismaFileCreatorImpl

        .getBean(ProductionUnitManager.MANAGER_NAME);
    when(managerRepository.getProductionUnitManager()).thenReturn(
        productionUnitManager);
    OrdchgrHeadVManager ordchgrHeadVManager = (OrdchgrHeadVManager) ModelUtil
        .getBean(OrdchgrHeadVManager.MANAGER_NAME);
    VismaFileCreator vismaFileCreator = new VismaFileCreatorImpl(
        ordchgrHeadVManager, false);
    final OrderViewHandler orderViewHandler = new OrderViewHandler(login,
        managerRepository, deviationOverviewViewFactory,
        deviationViewHandlerFactory, true);
    final OrderViewHandlerFactory orderViewHandlerFactory = new OrderViewHandlerFactory() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.