return columnData;
}
@Test
public void testConstraints() {
Context context;
Map<String, String> values;
//Row 0, Column 0
context = new Context( 0,
0,
null );
values = manager.getCurrentValueMap( context );
assertNotNull( values );
assertEquals( 2,
values.size() );
assertTrue( values.containsKey( "sfc0p0" ) );
assertNotNull( values.get( "sfc0p0" ) );
assertEquals( "r0c0",
values.get( "sfc0p0" ) );
assertTrue( values.containsKey( "sfc1p0" ) );
assertNotNull( values.get( "sfc1p0" ) );
assertEquals( "r0c1",
values.get( "sfc1p0" ) );
//Row 1, Column 0
context = new Context( 1,
0,
null );
values = manager.getCurrentValueMap( context );
assertNotNull( values );
assertEquals( 2,
values.size() );
assertTrue( values.containsKey( "sfc0p0" ) );
assertNotNull( values.get( "sfc0p0" ) );
assertEquals( "r1c0",
values.get( "sfc0p0" ) );
assertTrue( values.containsKey( "sfc1p0" ) );
assertNotNull( values.get( "sfc1p0" ) );
assertEquals( "r1c1",
values.get( "sfc1p0" ) );
//Row 0, Column 1
context = new Context( 0,
1,
null );
values = manager.getCurrentValueMap( context );
assertNotNull( values );
assertEquals( 2,
values.size() );
assertTrue( values.containsKey( "sfc0p0" ) );
assertNotNull( values.get( "sfc0p0" ) );
assertEquals( "r0c0",
values.get( "sfc0p0" ) );
assertTrue( values.containsKey( "sfc1p0" ) );
assertNotNull( values.get( "sfc1p0" ) );
assertEquals( "r0c1",
values.get( "sfc1p0" ) );
//Row 1, Column 1
context = new Context( 1,
1,
null );
values = manager.getCurrentValueMap( context );
assertNotNull( values );
assertEquals( 2,
values.size() );
assertTrue( values.containsKey( "sfc0p0" ) );
assertNotNull( values.get( "sfc0p0" ) );
assertEquals( "r1c0",
values.get( "sfc0p0" ) );
assertTrue( values.containsKey( "sfc1p0" ) );
assertNotNull( values.get( "sfc1p0" ) );
assertEquals( "r1c1",
values.get( "sfc1p0" ) );
//Row 0, Column 2
context = new Context( 0,
2,
null );
values = manager.getCurrentValueMap( context );
assertNotNull( values );
assertEquals( 2,
values.size() );
assertTrue( values.containsKey( "sfc0p1" ) );
assertNotNull( values.get( "sfc0p1" ) );
assertEquals( "r0c2",
values.get( "sfc0p1" ) );
assertTrue( values.containsKey( "sfc1p1" ) );
assertNotNull( values.get( "sfc1p1" ) );
assertEquals( "sfc1p1Value",
values.get( "sfc1p1" ) );
//Row 1, Column 2
context = new Context( 1,
2,
null );
values = manager.getCurrentValueMap( context );
assertNotNull( values );
assertEquals( 2,