Examples of create()


Examples of com.ipc.oce.objects.reports.OCReportManager.create()

   
    ReportProcessor rProc = app.getReportProcessor();
    OCReportManager manager = rProc.getReport("ДоходыРасходы");
   
   
    OCReportObject report = manager.create();
   
    OCDataCompositionSchema dataCompositionSchema = report.getDataCompositionSchema();
    for (OCDataCompositionSchemaDataSet object : dataCompositionSchema.getDataSets()) {
      System.out.println(object);
      System.out.println(object.getClass().getName());

Examples of com.jcabi.github.Blobs.create()

     * @throws Exception if a problem occurs.
     */
    @Test
    public void canCreateBlob() throws Exception {
        final Blobs blobs = repo().git().blobs();
        final Blob blob = blobs.create("content1", "encoding1");
        MatcherAssert.assertThat(
            blobs.get(blob.sha()),
            Matchers.equalTo(blob)
        );
    }

Examples of com.jcabi.github.Contents.create()

    @Test
    public void canFetchReadmeFile() throws Exception {
        final Contents contents = MkContentsTest.repo().contents();
        final String body = "Readme On Master";
        // @checkstyle MultipleStringLiterals (6 lines)
        contents.create(
            content("README.md", "readme on master", body).build()
        );
        MatcherAssert.assertThat(
            contents.readme().json().getString("content"),
            Matchers.is(body)

Examples of com.jcabi.github.DeployKeys.create()

     * @throws Exception If some problem inside
     */
    @Test
    public void canFetchSingleDeployKey() throws Exception {
        final DeployKeys keys = MkDeployKeysTest.repo().keys();
        final DeployKey key = keys.create("Title", "Key");
        MatcherAssert.assertThat(keys.get(key.number()), Matchers.equalTo(key));
    }

    /**
     * MkDeployKeys can create a deploy key.

Examples of com.jcabi.github.Gists.create()

     * @throws Exception - if anything goes wrong.
     */
    @Test
    public void removesGistByIdentifier() throws Exception {
        final Gists gists = new MkGithub().gists();
        final Gist gist = gists.create(
            Collections.singletonMap("fileName.txt", "content"), false
        );
        MatcherAssert.assertThat(
            gists.iterate(),
            Matchers.hasItem(gist)

Examples of com.jcabi.github.Hooks.create()

     * @throws Exception if something goes wrong.
     */
    @Test
    public void canDeleteSingleHook() throws Exception {
        final Hooks hooks = MkHooksTest.repo().hooks();
        final Hook hook = hooks.create(
            // @checkstyle MultipleStringLiterals (1 line)
            "geocommit", Collections.<String, String>emptyMap()
        );
        MatcherAssert.assertThat(
            hooks.iterate(),

Examples of com.jcabi.github.Labels.create()

    @Test
    public void deletesLabels() throws Exception {
        final Repo repo = this.repo();
        final Labels labels = repo.labels();
        final String name = "label-0";
        labels.create(name, "e1e1e1");
        final Issue issue = repo.issues().create("hey, you!", "");
        issue.labels().add(Collections.singletonList(name));
        labels.delete(name);
        MatcherAssert.assertThat(
            repo.labels().iterate(),

Examples of com.jcabi.github.Milestones.create()

     * @throws Exception - if something goes wrong.
     */
    @Test
    public void createsMilestone() throws Exception {
        final Milestones milestones = this.repo().milestones();
        final Milestone milestone = milestones.create("test milestone");
        MatcherAssert.assertThat(milestone, Matchers.notNullValue());
        MatcherAssert.assertThat(
            milestones.create("another milestone"),
            Matchers.notNullValue()
        );

Examples of com.jcabi.github.PublicKeys.create()

     * @throws Exception if a problem occurs.
     */
    @Test
    public void retrievesKeys() throws Exception {
        final PublicKeys keys = new MkGithub().users().self().keys();
        final PublicKey key = keys.create("key", "ssh 1AA");
        MatcherAssert.assertThat(
            keys.iterate(),
            Matchers.hasItem(key)
        );
    }

Examples of com.jcabi.github.References.create()

     */
    @Test
    public void createsMkReference() throws Exception {
        final References refs = this.repo().git().references();
        MatcherAssert.assertThat(
            refs.create("refs/heads/branch1", "abcderf122"),
            Matchers.notNullValue()
        );
    }

    /**
 
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.