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