예제 #1
0
 @Test
 public void testarFormatacaoTamanhoMaior() {
   try {
     PISPASEP.formatar("111111111111");
   } catch (AlfredException ae) {
   }
 }
예제 #2
0
 @Test
 public void testarFormatacao() {
   String pisPasep = PISPASEP.formatar("11111111114");
   Assert.assertEquals(pisPasep.charAt(3), '.');
   Assert.assertEquals(pisPasep.charAt(9), '.');
   Assert.assertEquals(pisPasep.charAt(12), '-');
 }