src/test/java/com/jcabi/github/mock/MkDeployKeysTest.java
/**
     * MkDeployKeys can create distinct deploy keys.
     * Reproduces bug described in issue #346.
     * @throws Exception If some problem inside.
     */
MkDeployKeys can create distinct deploy keys.
Reproduces bug described in issue #346.
@throws Exception If some problem inside.
MkDeployKeys can create distinct deploy keys . Reproduces bug described in issue #346 . @throws Exception If some problem inside .
@Test
    public void canCreateDistinctDeployKeys() throws Exception {
        final DeployKeys keys = MkDeployKeysTest.repo().keys();
        final DeployKey first = keys.create("Title2", "Key2");
        final DeployKey second = keys.create("Title3", "Key3");
        MatcherAssert.assertThat(
            first,
            Matchers.not(Matchers.is(second))
        );
        MatcherAssert.assertThat(
            first.number(),
            Matchers.not(Matchers.is(second.number()))
        );
    }
@ Test public void canCreateDistinctDeployKeys ( ) throws Exception { final DeployKeys keys = MkDeployKeysTest . repo ( ) . keys ( ) ; final DeployKey first = keys . create ( "Title2" , "Key2" ) ; final DeployKey second = keys . create ( "Title3" , "Key3" ) ; MatcherAssert . assertThat ( first , Matchers . not ( Matchers . is ( second ) ) ) ; MatcherAssert . assertThat ( first . number ( ) , Matchers . not ( Matchers . is ( second . number ( ) ) ) ) ; }
MkDeployKeys can create distinct deploy keys.
MkDeployKeys can create distinct deploy keys .