Examples of create()


Examples of org.onebusaway.transit_data_federation.impl.realtime.BlockLocationRecord.Builder.create()

    b.setBlockId(new AgencyAndId("1", blockId));
    b.setServiceDate(serviceDate);
    b.setVehicleId(new AgencyAndId("1", vehicleId));
    b.setDistanceAlongBlock(distanceAlongBlock);
    b.setTime(t);
    return b.create();
  }

  private static class RecordSource implements Runnable {

    private BlockInstance _blockInstance;

Examples of org.onebusaway.transit_data_federation.impl.transit_graph.BlockConfigurationEntryImpl.Builder.create()

        new ArrayList<LocalizedServiceId>()));
    builder.setTrips(tripEntries);
    builder.setFrequencies(frequencies);
    builder.setTripGapDistances(new double[tripEntries.size()]);

    BlockConfigurationEntry configuration = builder.create();

    List<BlockConfigurationEntry> configurations = block.getConfigurations();
    if (configurations == null) {
      configurations = new ArrayList<BlockConfigurationEntry>();
      block.setConfigurations(configurations);

Examples of org.onebusaway.transit_data_federation.model.ShapePointsFactory.create()

    ShapePointsFactory factory = new ShapePointsFactory();
    factory.addPoint(47.652300128129454, -122.30622018270873);
    factory.addPoint(47.653181844549394, -122.30523312979125);
    factory.addPoint(47.654265901710744, -122.30511511259459);
    ShapePoints shapeA = factory.create();

    factory = new ShapePointsFactory();
    factory.addPoint(47.661275594717026, -122.31189573698424);
    factory.addPoint(47.661347854692465, -122.3240622370758);
    factory.addPoint(47.661368177792546, -122.32508885257624);

Examples of org.onebusaway.transit_data_federation.model.narrative.StopTimeNarrative.Builder.create()

     ****/

    Builder stopTimeNarrative = StopTimeNarrative.builder();
    stopTimeNarrative.setStopHeadsign("Downtown");
    Mockito.when(_narrativeService.getStopTimeForEntry(stopTimeAB)).thenReturn(
        stopTimeNarrative.create());

    stopTimeNarrative = StopTimeNarrative.builder();
    stopTimeNarrative.setRouteShortName("XX");
    Mockito.when(_narrativeService.getStopTimeForEntry(stopTimeBB)).thenReturn(
        stopTimeNarrative.create());

Examples of org.openejb.test.entity.bmp.BasicBmpHome.create()

        assertNotNull("The InitialContext is null", ctx);

        BasicBmpHome home = (BasicBmpHome) ctx.lookup("java:comp/env/ejb/bmp_entity");
        assertNotNull("The EJBHome looked up is null", home);

        BasicBmpObject object = home.create("Enc Bean");
        assertNotNull("The EJBObject is null", object);
    }

    public void testLookupStatefulBean() throws Exception {

Examples of org.openejb.test.stateful.BasicStatefulHome.create()

        assertNotNull("The InitialContext is null", ctx);

        BasicStatefulHome home = (BasicStatefulHome) ctx.lookup("java:comp/env/ejb/stateful");
        assertNotNull("The EJBHome looked up is null", home);

        BasicStatefulObject object = home.create("Enc Bean");
        assertNotNull("The EJBObject is null", object);

    }

    public void testLookupStatelessBean() throws Exception {

Examples of org.openejb.test.stateless.BasicStatelessHome.create()

        assertNotNull("The InitialContext is null", ctx);

        BasicStatelessHome home = (BasicStatelessHome) ctx.lookup("java:comp/env/ejb/stateless");
        assertNotNull("The EJBHome looked up is null", home);

        BasicStatelessObject object = home.create();
        assertNotNull("The EJBObject is null", object);

    }

}

Examples of org.openejb.test.stateless.EncStatelessHome.create()

        try {
            Object obj = initialContext.lookup("client/tests/stateless/EncBean");
            EncStatelessHome home = (EncStatelessHome) obj;
            assertNotNull("The EJBHome returned from JNDI is null", home);

            EncStatelessObject expected = home.create();
            assertNotNull("The EJBObject created is null", expected);

            EncStatelessObject actual = (EncStatelessObject) ejbObject.returnEJBObject(expected);
            assertNotNull("The EJBObject returned is null", actual);

Examples of org.openengsb.core.api.ConnectorManager.create()

        attributes.put("mixin.1", EventSupport.class.getName());
        attributes.put("modelType", "org.openengsb.domain.example.model.SourceModelA");
        Map<String, Object> properties = new HashMap<String, Object>();
        ConnectorDescription connectorDescription =
            new ConnectorDescription("example", "filewatcher", attributes, properties);
        connectorManager.create(connectorDescription);
        getOsgiService(ExampleDomain.class, 30000L);
        Thread.sleep(1500);
        FileUtils.write(watchfile, "\"foo\",\"bar\"");
        Thread.sleep(1500);
        QueryInterface queryInterface = getOsgiService(QueryInterface.class);

Examples of org.openengsb.core.edbi.jdbc.JdbcIndexEngineFactory.create()

    @Before
    public void setUp() throws Exception {
        driver = new Driver(getDataSource());
        JdbcIndexEngineFactory factory = new JdbcIndexEngineFactory(driver);
        engine = factory.create();
    }

    @Test
    public void create_shouldProperlyCreateDatabaseTables() throws Exception {
        Index<TestModel> index = engine.createIndex(TestModel.class);
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.