| 1 |
package org.jfree.report; |
| 2 |
|
| 3 |
import junit.framework.TestCase; |
| 4 |
import org.jfree.report.data.FastGlobalView; |
| 5 |
|
| 6 |
/** |
| 7 |
* Todo: Document Me |
| 8 |
* |
| 9 |
* @author Thomas Morgner |
| 10 |
*/ |
| 11 |
public class Pre397Test extends TestCase |
| 12 |
{ |
| 13 |
public Pre397Test() |
| 14 |
{ |
| 15 |
} |
| 16 |
|
| 17 |
public Pre397Test(final String s) |
| 18 |
{ |
| 19 |
super(s); |
| 20 |
} |
| 21 |
|
| 22 |
protected void setUp() throws Exception |
| 23 |
{ |
| 24 |
JFreeReportBoot.getInstance().start(); |
| 25 |
} |
| 26 |
|
| 27 |
public void testPre397() throws DataSourceException |
| 28 |
{ |
| 29 |
final FastGlobalView fgv = new FastGlobalView(); |
| 30 |
fgv.putField("col1", "A", false); |
| 31 |
fgv.putField("col2", "A", false); |
| 32 |
fgv.putField("col3", "A", false); |
| 33 |
final FastGlobalView globalView = fgv.advance(); |
| 34 |
globalView.putField("col1", "A", true); |
| 35 |
globalView.putField("col2", "B", true); |
| 36 |
globalView.putField("col3", "B", true); |
| 37 |
assertFalse("Col1 no change", globalView.getFlags("col1").isChanged()); |
| 38 |
assertTrue("Col2 has change", globalView.getFlags("col2").isChanged()); |
| 39 |
assertTrue("Col3 has change", globalView.getFlags("col3").isChanged()); |
| 40 |
} |
| 41 |
} |