src/test/java/com/jcabi/github/RtDeployKeysITCase.java
/**
     * RtDeployKeys can create a deploy key.
     * @throws Exception If something goes wrong
     */
RtDeployKeys can create a deploy key.
@throws Exception If something goes wrong
RtDeployKeys can create a deploy key . @throws Exception If something goes wrong
@Test
    public void createsDeployKey() throws Exception {
        final DeployKeys keys = repo.keys();
        final String title = "Test Create Key";
        final DeployKey key = keys.create(title, key());
        try {
            MatcherAssert.assertThat(
                new DeployKey.Smart(key).title(),
                Matchers.is(title)
            );
        } finally {
            key.remove();
        }
    }
@ Test public void createsDeployKey ( ) throws Exception { final DeployKeys keys = repo . keys ( ) ; final String title = "Test Create Key" ; final DeployKey key = keys . create ( title , key ( ) ) ; try { MatcherAssert . assertThat ( new DeployKey . Smart ( key ) . title ( ) , Matchers . is ( title ) ) ; } finally { key . remove ( ) ; } }
RtDeployKeys can create a deploy key.
RtDeployKeys can create a deploy key .