@Test public void incompatibleControlFieldLength() { int endIndex = A_CONTROL_FIELD_VALUE.length() + 10; final Record record = newRecord(A_CONTROL_FIELD_NAME, A_CONTROL_FIELD_VALUE); final String [] expressions = { A_CONTROL_FIELD_NAME + "[00-" + endIndex + "]", A_CONTROL_FIELD_NAME + " [ 00 - " + endIndex + " ]", A_CONTROL_FIELD_NAME + " [ 00 - " + endIndex + " ]"}; for (final String specs : expressions) { final ControlFieldExpression expression = new ControlFieldExpression(specs); assertNull(expression.evaluate(record)); } }
@Override public String evaluate(final Record target) { return currentState.evaluate(target); }
ControlFieldExpression implements Expression<String, Record> { @Override public String evaluate(final Record target) { return currentState.evaluate(target); } }
ControlFieldExpression implements Expression<String, Record> { @Override public String evaluate(final Record target) { return currentState.evaluate(target); } ControlFieldExpression(final String specs); }
ControlFieldExpression implements Expression<String, Record> { @Override public String evaluate(final Record target) { return currentState.evaluate(target); } ControlFieldExpression(final String specs); @Override String evaluate(final Record target); @Override String specs(); }
ControlFieldExpression implements Expression<String, Record> { @Override public String evaluate(final Record target) { return currentState.evaluate(target); } ControlFieldExpression(final String specs); @Override String evaluate(final Record target); @Override String specs();  }