@@ -0,0 +1,2673 @@
+/**%0A * Copyright (c) 2013-2014, jcabi.com%0A * All rights reserved.%0A *%0A * Redistribution and use in source and binary forms, with or without%0A * modification, are permitted provided that the following conditions%0A * are met: 1) Redistributions of source code must retain the above%0A * copyright notice, this list of conditions and the following%0A * disclaimer. 2) Redistributions in binary form must reproduce the above%0A * copyright notice, this list of conditions and the following%0A * disclaimer in the documentation and/or other materials provided%0A * with the distribution. 3) Neither the name of the jcabi.com nor%0A * the names of its contributors may be used to endorse or promote%0A * products derived from this software without specific prior written%0A * permission.%0A *%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS%0A * %22AS IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT%0A * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND%0A * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL%0A * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,%0A * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES%0A * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR%0A * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)%0A * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,%0A * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)%0A * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED%0A * OF THE POSSIBILITY OF SUCH DAMAGE.%0A */%0Apackage com.jcabi.github;%0A%0Aimport com.jcabi.http.request.FakeRequest;%0Aimport org.apache.commons.lang3.RandomStringUtils;%0Aimport org.hamcrest.MatcherAssert;%0Aimport org.hamcrest.Matchers;%0Aimport org.junit.Test;%0A%0A/**%0A * Test case for %7B@link RtRepoCommit%7D.%0A * @author Aleksey Popov (alopen@yandex.ru)%0A * @version $Id$%0A */%0Apublic class RtRepoCommitTest %7B%0A    /**%0A     * Checks request URL.%0A     */%0A    @Test%0A    public final void testRequestUrl() %7B%0A        final String sha = RandomStringUtils.randomAlphanumeric(50);%0A        final RtRepoCommit commit = new RtRepoCommit(%0A            new FakeRequest(), repo(), sha%0A        );%0A        MatcherAssert.assertThat(%0A            commit.toString(),%0A            Matchers.endsWith(%0A                String.format(%0A                    %22/see-FakeRequest-class/repos/user/repo/commits/%25s%22,%0A                    sha%0A                )%0A            )%0A        );%0A    %7D%0A%0A    /**%0A     * Create repository for tests.%0A     * @return Repository%0A     */%0A    private static Repo repo() %7B%0A        return new RtGithub().repos()%0A            .get(new Coordinates.Simple(%22user%22, %22repo%22));%0A    %7D%0A%0A%7D%0A

Test case for #943