コード例 #1
0
 @Test
 public void testSetFieldName() throws Exception {
   assertNull(setSessionVariableMeta.getFieldName());
   String[] fieldName = new String[] {"value1", "value2"};
   setSessionVariableMeta.setFieldName(fieldName);
   assertEquals(fieldName, setSessionVariableMeta.getFieldName());
 }
コード例 #2
0
 @Test
 public void testAllocate() {
   final int size = 100;
   setSessionVariableMeta.allocate(size);
   assertAllocate(size, setSessionVariableMeta.getFieldName());
   assertAllocate(size, setSessionVariableMeta.getVariableName());
   assertAllocate(size, setSessionVariableMeta.getDefaultValue());
 }