samples/apifest1/day3-intermezzo/pnejedly/against-alwayscreatenewcircuit/test/apifest/CircuitTest.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:52:52 +0200
changeset 58 be49ca0fff33
parent 54 45b0d58e66ca
child 59 02e05defc6a0
permissions -rw-r--r--
Rewriting the infrastructure to use shared common.xml
     1 package apifest;
     2 
     3 import junit.framework.TestCase;
     4 import org.netbeans.apifest.boolcircuit.Circuit;
     5 
     6 
     7 /** Write a test that works with version from day A and fails with version B.
     8  */
     9 public class CircuitTest extends TestCase {
    10     public CircuitTest(String n) {
    11         super(n);
    12     }
    13     
    14     public void testReallyUnrealistic() throws Exception {
    15         // OK, this is not fair, right?
    16         assertEquals(null, Circuit.or(false, false).getClass().getSuperclass().getSuperclass().getSuperclass());
    17     }
    18 }