src/test/java/com/jcabi/github/RtReferenceTest.java
/**
     * RtReference should be able to return its owner repo.
     * @throws Exception - If something goes wrong.
     */
RtReference should be able to return its owner repo.
@throws Exception - If something goes wrong.
RtReference should be able to return its owner repo . @throws Exception - If something goes wrong .
@Test
    public void returnsOwner() throws Exception {
        final Repo owner = repo();
        final MkContainer container = new MkGrizzlyContainer().next(
            new MkAnswer.Simple(
                HttpURLConnection.HTTP_OK,
                "{\"ref\":\"refs/heads/featureD\"}"
            )
        ).start();
        final Reference reference = new RtReference(
            new ApacheRequest(container.home()), owner, "refs/heads/featureD"
        );
        try {
            MatcherAssert.assertThat(
                reference.repo(),
                Matchers.is(owner)
            );
        } finally {
            container.stop();
        }
    }
@ Test public void returnsOwner ( ) throws Exception { final Repo owner = repo ( ) ; final MkContainer container = new MkGrizzlyContainer ( ) . next ( new MkAnswer . Simple ( HttpURLConnection . HTTP_OK , "{\"ref\":\"refs/heads/featureD\"}" ) ) . start ( ) ; final Reference reference = new RtReference ( new ApacheRequest ( container . home ( ) ) , owner , "refs/heads/featureD" ) ; try { MatcherAssert . assertThat ( reference . repo ( ) , Matchers . is ( owner ) ) ; } finally { container . stop ( ) ; } }
RtReference should be able to return its owner repo.
RtReference should be able to return its owner repo .