Examples of destination()


Examples of org.qi4j.sample.dcicargo.sample_a.data.shipping.cargo.RouteSpecification.destination()

        delivery = new BuildDeliverySnapshot( cargo ).get();
        cargo.delivery().set( delivery );

        // Old itinerary will not satisfy new route specification
        assertThat( itinerary.firstLeg().loadLocation().get(), is( not( equalTo( routeSpec.origin().get() ) ) ) );
        assertThat( itinerary.lastLeg().unloadLocation().get(), is( equalTo( routeSpec.destination().get() ) ) );
        assertThat( delivery.routingStatus().get(), is( equalTo( RoutingStatus.MISROUTED ) ) );

        // Old planned arrival time is still satisfying new deadline
        assertTrue( routeSpec.arrivalDeadline().get().after( itinerary.finalArrivalDate() ) );
View Full Code Here

Examples of org.qi4j.sample.dcicargo.sample_a.data.shipping.cargo.RouteSpecification.destination()

        add( new PrevNext( "prevNext", CargoDetailsPage.class, trackingId ) );

        add( new Label( "trackingId", trackingId ) );
        add( new Label( "origin", cargo.origin().get().getString() ) );
        add( new Label( "destination", routeSpecification.destination()
            .get()
            .getString() ).add( new CorrectColor( isMisrouted ) ) );
        add( new Label( "deadline", Model.of( routeSpecification.arrivalDeadline().get() ) ) );
        add( new Label( "routingStatus", routingStatus.toString() ).add( new ErrorColor( isMisrouted ) ) );
        add( new LinkPanel( "changeDestination", ChangeDestinationPage.class, trackingId, "Change destination" ) );
View Full Code Here

Examples of org.qi4j.sample.dcicargo.sample_b.data.structure.cargo.RouteSpecification.destination()

                String trackingId = cargo.trackingId().get().id().get();
                String origin = cargo.origin().get().getCode();

                // Route specification
                RouteSpecification routeSpec = cargo.routeSpecification().get();
                String destination = routeSpec.destination().get().getCode();
                Date deadline = routeSpec.arrivalDeadline().get();

                // Routing status
                Delivery delivery = cargo.delivery().get();
                RoutingStatus routingStatus = cargo.delivery().get().routingStatus().get();
View Full Code Here

Examples of org.qi4j.sample.dcicargo.sample_b.data.structure.cargo.RouteSpecification.destination()

            originFragment.add( new Label( "cargoOrigin", cargo.origin().get().getString() ) );
            add( originFragment );
        }

        add( new Label( "departure", Model.of( routeSpecification.earliestDeparture().get() ) ) );
        add( new Label( "destination", routeSpecification.destination()
            .get()
            .getString() ).add( new CorrectColor( isMisrouted ) ) );
        add( new Label( "deadline", Model.of( routeSpecification.arrivalDeadline().get() ) ) );
        add( new Label( "routingStatus", routingStatus.toString() ).add( new ErrorColor( isMisrouted ) ) );
        add( new LinkPanel( "changeDestination", ChangeDestinationPage.class, trackingId, "Change destination" ) );
View Full Code Here

Examples of org.qi4j.sample.dcicargo.sample_b.data.structure.cargo.RouteSpecification.destination()

                    // MISROUTE: Route specification not satisfied with itinerary
                    if( i == 12 )
                    {
                        Location origin = routeSpec.origin().get();
                        Location dest = routeSpec.destination().get();
                        Location badDest = null;
                        Query<Location> locations = uow.newQuery( module.newQueryBuilder( Location.class ) );
                        for( Location loc : locations )
                        {
                            if( !origin.equals( loc ) && !dest.equals( loc ) )
View Full Code Here

Examples of org.tmatesoft.hg.core.HgCloneCommand.destination()

      System.err.printf("Remote repository %s is not valid", hgRemote.getLocation());
      return;
    }
    cmd.source(hgRemote);
    if (noOptsArgs.size() > 1) {
      cmd.destination(new File(noOptsArgs.get(1)));
    } else {
      cmd.destination(new File(System.getProperty("user.dir")));
    }
    cmd.execute();
  }
View Full Code Here

Examples of org.tmatesoft.hg.core.HgCloneCommand.destination()

    }
    cmd.source(hgRemote);
    if (noOptsArgs.size() > 1) {
      cmd.destination(new File(noOptsArgs.get(1)));
    } else {
      cmd.destination(new File(System.getProperty("user.dir")));
    }
    cmd.execute();
  }
}
View Full Code Here

Examples of org.tmatesoft.hg.core.HgCloneCommand.destination()

      cmd.source(hgRemote);
      File dest = new File(tempDir, "test-clone-" + x++);
      if (dest.exists()) {
        RepoUtils.rmdir(dest);
      }
      cmd.destination(dest);
      cmd.execute();
      verify(hgRemote, dest);
    }
  }
 
View Full Code Here

Examples of org.tmatesoft.hg.core.HgPushCommand.destination()

    if (hgRemote.isInvalid()) {
      System.err.printf("Remote repository %s is not valid", hgRemote.getLocation());
      return;
    }
    HgPushCommand cmd = hgRepo.createPushCommand();
    cmd.destination(hgRemote);
    cmd.execute();
    System.out.printf("Added %d changesets\n", cmd.getPushedRevisions().size());
  }
}
View Full Code Here

Examples of org.tmatesoft.hg.core.HgPushCommand.destination()

    try {
      final HgLookup hgLookup = new HgLookup();
      HgRepository srcRepo = hgLookup.detect(srcRepoLoc);
      HgPushCommand cmd = new HgPushCommand(srcRepo);
      final HgRemoteRepository dstRemote = hgLookup.detect(server.getURL());
      cmd.destination(dstRemote);
      cmd.execute();
      final HgRepository dstRepo = hgLookup.detect(dstRepoLoc);
      checkRepositoriesAreSame(srcRepo, dstRepo);
      final List<Nodeid> outgoing = new HgOutgoingCommand(srcRepo).against(dstRemote).executeLite();
      errorCollector.assertTrue(outgoing.toString(), outgoing.isEmpty());
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.