author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 14 Jun 2008 09:52:52 +0200 | |
changeset 58 | be49ca0fff33 |
parent 55 | 5a0b7b1f8f11 |
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 |
import org.netbeans.apifest.boolcircuit.Operation; |
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@55 | 9 |
// BEGIN: apifest.day3.against-inputandoperation.CircuitTest |
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 testSourceCompatibility() throws Exception { |
jtulach@54 | 16 |
} |
jtulach@54 | 17 |
|
jtulach@54 | 18 |
// One forgotten final and the dissaster is here. |
jtulach@54 | 19 |
class MyCircuit extends Circuit { |
jtulach@54 | 20 |
public double evaluateRealOperation(Operation op) { |
jtulach@54 | 21 |
return 0; |
jtulach@54 | 22 |
} |
jtulach@54 | 23 |
} |
jtulach@54 | 24 |
} |
jtulach@55 | 25 |
// END: apifest.day3.against-inputandoperation.CircuitTest |