Examples of create()


Examples of com.linkedin.restli.server.twitter.PromiseStatusCollectionResource.create()

    PromiseDiscoveredItemsResource discoveredItemsResource;

    // #1
    methodDescriptor = statusResourceModel.findMethod(ResourceMethod.CREATE);
    statusResource = getMockResource(PromiseStatusCollectionResource.class);
    EasyMock.expect(statusResource.create((Status)EasyMock.anyObject())).andReturn(Promises.<CreateResponse>value(null)).once();
    checkInvocation(statusResource,
                    methodDescriptor,
                    "POST",
                    version,
                    "/promisestatuses",

Examples of com.linkedin.restli.server.twitter.RepliesCollectionResource.create()

                    "{}");

    // #1.1: different endpoint
    methodDescriptor = repliesResourceModel.findMethod(ResourceMethod.CREATE);
    repliesResource = getMockResource(RepliesCollectionResource.class);
    EasyMock.expect(repliesResource.create((Status)EasyMock.anyObject())).andReturn(null).once();
    checkInvocation(repliesResource,
                    methodDescriptor,
                    "POST",
                    version,
                    "/statuses/1/replies",

Examples of com.linkedin.restli.server.twitter.StatusCollectionResource.create()

    DiscoveredItemsResource discoveredItemsResource;

    // #1
    methodDescriptor = statusResourceModel.findMethod(ResourceMethod.CREATE);
    statusResource = getMockResource(StatusCollectionResource.class);
    EasyMock.expect(statusResource.create((Status)EasyMock.anyObject())).andReturn(null).once();
    checkInvocation(statusResource,
                    methodDescriptor,
                    "POST",
                    version,
                    "/statuses",

Examples of com.massivecraft.factions.entity.FactionColl.create()

    FactionsEventCreate createEvent = new FactionsEventCreate(sender, coll.getUniverse(), factionId, newName);
    createEvent.run();
    if (createEvent.isCancelled()) return;
   
    // Apply
    Faction faction = coll.create(factionId);
    faction.setName(newName);
   
    usender.setRole(Rel.LEADER);
    usender.setFaction(faction);
   

Examples of com.microsoft.windowsazure.Configuration.create()

        Configuration config = Configuration.getInstance();
        overrideWithEnv(config, ServiceBusConfiguration.URI);
        overrideWithEnv(config, ServiceBusConfiguration.WRAP_URI);
        overrideWithEnv(config, ServiceBusConfiguration.WRAP_NAME);
        overrideWithEnv(config, ServiceBusConfiguration.WRAP_PASSWORD);
        WrapContract contract = new WrapRestProxy(config.create(Client.class),
                new UserAgentFilter());

        // Act
        String serviceBusUri = (String) config
                .getProperty(ServiceBusConfiguration.URI);

Examples of com.microsoft.windowsazure.services.media.MediaContract.create()

    }

    @Test
    public void canCreateAssetThroughMediaServiceAPI() throws Exception {
        MediaContract client = createService();
        AssetInfo newAsset = client.create(Asset.create().setName(
                testAssetPrefix + "secondTestAsset"));

        Assert.assertEquals(testAssetPrefix + "secondTestAsset",
                newAsset.getName());
    }

Examples of com.mime.minefront.level.Level.create()

    Level level = game.level;
    int size = 100;
    for (int xBlock = -size; xBlock <= size; xBlock++) {
      for (int zBlock = -size; zBlock <= size; zBlock++) {
        Block block = level.create(xBlock, zBlock);
        Block east = level.create(xBlock + 1, zBlock);
        Block south = level.create(xBlock, zBlock + 1);

        if (block.solid) {
          if (!east.solid) {

Examples of com.netflix.curator.framework.CuratorFramework.create()

            String rootDir = conf.get(Config.TRANSACTIONAL_ZOOKEEPER_ROOT) + "/" + id + "/" + subroot;
            List<String> servers = (List<String>) getWithBackup(conf, Config.TRANSACTIONAL_ZOOKEEPER_SERVERS, Config.STORM_ZOOKEEPER_SERVERS);
            Object port = getWithBackup(conf, Config.TRANSACTIONAL_ZOOKEEPER_PORT, Config.STORM_ZOOKEEPER_PORT);
            CuratorFramework initter = Utils.newCuratorStarted(conf, servers, port);
            try {
                initter.create().creatingParentsIfNeeded().forPath(rootDir);
            } catch(KeeperException.NodeExistsException e)  {
               
            }
           
            initter.close();

Examples of com.neuralnetwork.shared.util.Connections.create()

        }
        outputLayer.build();
       
        if (!layers.isEmpty()) {
          //Connect input layer to first hidden layer.
          c.create(inputLayer, layers.get(0));
         
          //Connect each hidden layer to its child hidden layer.
          if (layers.size() >= 2) {
              i = layers.iterator();
              while (i.hasNext()) {

Examples of com.nexirius.framework.jdbc.DatabaseTableMapping.create()

                }

                remove.append(model);
            } else {
                if (model.getInstanceName() == null) {
                    m.create(model);
                } else {
                    m.update(model);
                }
            }
        }
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.