assertTrue( validator.isValid( "5754321X", null ) );
}
@Test
public void testInvalidMod11ReverseOrder() throws Exception {
Mod11CheckValidator validator = new Mod11CheckValidator();
Mod11Check modCheck = createMod11CheckAnnotation(
0,
Integer.MAX_VALUE,
-1,
false,
'X',
'Z',
ProcessingDirection.LEFT_TO_RIGHT
);
validator.initialize( modCheck );
assertFalse( validator.isValid( "378796950Z", null ) );
assertFalse( validator.isValid( "1234557X", null ) );
}