1 package org.apache.commons.javaflow.bytecode.transformation.tests;
2
3 import org.apache.commons.javaflow.Continuation;
4 import org.apache.commons.javaflow.bytecode.transformation.AbstractTransformerTestCase;
5 import org.apache.commons.javaflow.bytecode.transformation.rewrite.BlackRed;
6
7 public abstract class AbstractBlackRedTestCase extends AbstractTransformerTestCase {
8
9 public void testBlackRed() {
10 final Runnable r = new BlackRed();
11 final Continuation c1 = Continuation.startWith(r);
12 assertTrue(c1 != null);
13 final Continuation c2 = Continuation.continueWith(c1);
14 assertTrue(c2 == null);
15 }
16 }