1 package org.codehaus.plexus; 2 3 import java.util.concurrent.atomic.AtomicBoolean; 4 5 import org.junit.Test; 6 import org.junit.runner.JUnitCore; 7 8 import static org.junit.Assert.*; 9 10 public class PlexusJUnit4TestCaseTest { 11 12 private static AtomicBoolean run = new AtomicBoolean(false); 13 14 public static class MyTest extends PlexusJUnit4TestCase { 15 16 @Test 17 public void yeah() { 18 run.set(true); 19 } 20 } 21 22 @Test 23 public void runMytest() { 24 JUnitCore.runClasses(MyTest.class); 25 assertTrue(run.get()); 26 } 27 }