author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 14 Jun 2008 09:58:08 +0200 | |
changeset 153 | b5cbb797ec0a |
parent 132 | 3bc4c54f4bcc |
child 154 | 0fd5e9c500b9 |
permissions | -rw-r--r-- |
jtulach@54 | 1 |
package apifest; |
jtulach@54 | 2 |
|
jtulach@54 | 3 |
import junit.framework.TestCase; |
jtulach@54 | 4 |
import org.netbeans.apifest.boolcircuit.Circuit; |
jtulach@54 | 5 |
|
jtulach@54 | 6 |
|
jtulach@54 | 7 |
/** Write a test that works with version from day A and fails with version B. |
jtulach@54 | 8 |
*/ |
jtulach@59 | 9 |
// BEGIN: apifest.day3.against-alwayscreatenewcircuit |
jtulach@54 | 10 |
public class CircuitTest extends TestCase { |
jtulach@54 | 11 |
public CircuitTest(String n) { |
jtulach@54 | 12 |
super(n); |
jtulach@54 | 13 |
} |
jtulach@54 | 14 |
|
jtulach@54 | 15 |
public void testReallyUnrealistic() throws Exception { |
jtulach@54 | 16 |
// OK, this is not fair, right? |
jtulach@153 | 17 |
assertEquals(null, Circuit.or(false, false).getClass().getSuperclass().getSuperclass().getSuperclass()); |
jtulach@54 | 18 |
} |
jtulach@54 | 19 |
} |
jtulach@59 | 20 |
// END: apifest.day3.against-alwayscreatenewcircuit |