src/test/java/com/jcabi/github/RtDeployKeysITCase.java
/**
     * RtDeployKeys can iterate deploy keys.
     * @throws Exception If some problem inside
     */
RtDeployKeys can iterate deploy keys.
@throws Exception If some problem inside
RtDeployKeys can iterate deploy keys . @throws Exception If some problem inside
@Test
    public void canFetchAllDeployKeys() throws Exception {
        final DeployKeys keys = repo.keys();
        final String title = "Test Iterate Key";
        final DeployKey key = keys.create(title, key());
        try {
            MatcherAssert.assertThat(
                keys.iterate(),
                Matchers.hasItem(key)
            );
        } finally {
            key.remove();
        }
    }
@ Test public void canFetchAllDeployKeys ( ) throws Exception { final DeployKeys keys = repo . keys ( ) ; final String title = "Test Iterate Key" ; final DeployKey key = keys . create ( title , key ( ) ) ; try { MatcherAssert . assertThat ( keys . iterate ( ) , Matchers . hasItem ( key ) ) ; } finally { key . remove ( ) ; } }
RtDeployKeys can iterate deploy keys.
RtDeployKeys can iterate deploy keys .