Package com.jcabi.github

Examples of com.jcabi.github.DeployKey.number()


     */
    @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.
     * @throws Exception If some problem inside.
View Full Code Here


     */
    @Test
    public void canCreateDeployKey() throws Exception {
        final DeployKeys keys = MkDeployKeysTest.repo().keys();
        final DeployKey key = keys.create("Title1", "Key1");
        MatcherAssert.assertThat(key, Matchers.equalTo(keys.get(key.number())));
    }

    /**
     * MkDeployKeys can create distinct deploy keys.
     * Reproduces bug described in issue #346.
View Full Code Here

            first,
            Matchers.not(Matchers.is(second))
        );
        MatcherAssert.assertThat(
            first.number(),
            Matchers.not(Matchers.is(second.number()))
        );
    }

    /**
     * MkDeployKeys can be represented in JSON format.
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.