org.junit.Ignore : Ignore « org.junit « Java by API






org.junit.Ignore

 

import java.util.ArrayList;
import java.util.List;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import junit.framework.JUnit4TestAdapter;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;

public class MainClass{

  public static void main (String... args) {
    junit.textui.TestRunner.run (suite());
  }
  
  public static junit.framework.Test suite() {
    return new JUnit4TestAdapter(MainClass.class);
  }
  
  @Ignore("not today") @Test public void capacity() {
    assertTrue(1 == 2);
  }
  
  
  @Test public void testCopy() {
        assertEquals("Capacity", 11.991, 11.99, 0.1);
  }
}

   
  








Related examples in the same category