assertTrue( validator.isValid( "331.814.296-43", null ) );
}
@Test
public void testInvalidMod11() throws Exception {
Mod11CheckValidator validator = new Mod11CheckValidator();
Mod11Check modCheck = createMod11CheckAnnotation(
0,
Integer.MAX_VALUE,
-1,
true,
'0',
'0',
ProcessingDirection.RIGHT_TO_LEFT
);
validator.initialize( modCheck );
assertFalse( validator.isValid( "23322023584", null ) );
assertFalse( validator.isValid( "378.796.950-02", null ) );
assertFalse( validator.isValid( "331.814.296-52", null ) );
}