Package no.ugland.utransprod.service.impl

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


  @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

    };


    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

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

  }

  @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

  }

  @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

    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

      }
    };
    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

      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

        .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

Related Classes of no.ugland.utransprod.service.impl.VismaFileCreatorImpl

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.