@@ -0,0 +1,1495 @@
+/*%0D%0A * Copyright (c) 2009-2010, tempus-fugit committers%0D%0A *%0D%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0D%0A * you may not use this file except in compliance with the License.%0D%0A * You may obtain a copy of the License at%0D%0A *%0D%0A *      http://www.apache.org/licenses/LICENSE-2.0%0D%0A *%0D%0A * Unless required by applicable law or agreed to in writing, software%0D%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0D%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0D%0A * See the License for the specific language governing permissions and%0D%0A * limitations under the License.%0D%0A */%0D%0A%0D%0Apackage com.google.code.tempusfugit.concurrency;%0D%0A%0D%0Aimport org.junit.After;%0D%0Aimport org.junit.AfterClass;%0D%0Aimport org.junit.Ignore;%0D%0Aimport org.junit.Test;%0D%0Aimport org.junit.runner.RunWith;%0D%0A%0D%0Aimport static org.hamcrest.core.Is.is;%0D%0Aimport static org.junit.Assert.assertThat;%0D%0A%0D%0A@RunWith(ConcurrentTestRunner.class)%0D%0A@Ignore(%22Bug #10%22)%0D%0Apublic class RunConcurrentAfterClassTest %7B%0D%0A%0D%0A    private static Thread testThread;%0D%0A%0D%0A    @Test%0D%0A    public void runsMultipleTimes() %7B%0D%0A        testThread = Thread.currentThread();%0D%0A    %7D%0D%0A%0D%0A    @After%0D%0A    public void assertAfterIsEvaluatedOnTestThread() %7B%0D%0A        assertThat(Thread.currentThread(), is(testThread));%0D%0A    %7D%0D%0A                                     %0D%0A    @AfterClass%0D%0A    public static void assertAfterClassIsEvaluatedOnTestThread() %7B%0D%0A        assertThat(Thread.currentThread(), is(testThread));%0D%0A    %7D%0D%0A%0D%0A%7D

test for Bug #10