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-- |
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@54 | 9 |
public class CircuitTest extends TestCase { |
jtulach@54 | 10 |
public CircuitTest(String n) { |
jtulach@54 | 11 |
super(n); |
jtulach@54 | 12 |
} |
jtulach@54 | 13 |
|
jtulach@54 | 14 |
public void testReallyUnrealistic() throws Exception { |
jtulach@54 | 15 |
// OK, this is not fair, right? |
jtulach@54 | 16 |
assertEquals(null, Circuit.or(false, false).getClass().getSuperclass().getSuperclass().getSuperclass()); |
jtulach@54 | 17 |
} |
jtulach@54 | 18 |
} |