예제 #1
0
 @Test(expected = IllegalStateException.class)
 public void naoDevePermitirBairroNulo() {
   final NFNotaInfoLocal entrega = new NFNotaInfoLocal();
   entrega.setCnpj("12345678901234");
   entrega.setCodigoMunicipio("9999999");
   entrega.setComplemento("ifyKIg3j3eZtlNVAj3XJYZiJCrul6VLL85E7x6Kx6DVeChwlRLEkCQn7k5pe");
   entrega.setLogradouro("t59le7pl2eVn390y026Ebgh3HXtvEBzsMp4BzZJEwIazezToxeeKJCvm1GoG");
   entrega.setNomeMunicipio("OpXKhaHINo7OwLkVGvRq43HNwyBAgXTKcarl6Jsq8NzOBs70eZM4zL6fELOI");
   entrega.setNumero("YHTewrLNvzYaBmSbwxkDYcEZTCMORFVPAc6t6C5p0Bfu1globey70KWnaHHa");
   entrega.setUf(NFUnidadeFederativa.AC);
   entrega.toString();
 }
예제 #2
0
 @Test(expected = IllegalStateException.class)
 public void naoDevePermitirNumeroNulo() {
   final NFNotaInfoLocal entrega = new NFNotaInfoLocal();
   entrega.setBairro("JE17uXBNBnYTSTSQgqXcGLOR6f22SnahtFHr5MoHQZtZhTowVe3SVwl57kil");
   entrega.setCnpj("12345678901234");
   entrega.setCodigoMunicipio("9999999");
   entrega.setComplemento("ifyKIg3j3eZtlNVAj3XJYZiJCrul6VLL85E7x6Kx6DVeChwlRLEkCQn7k5pe");
   entrega.setLogradouro("t59le7pl2eVn390y026Ebgh3HXtvEBzsMp4BzZJEwIazezToxeeKJCvm1GoG");
   entrega.setNomeMunicipio("OpXKhaHINo7OwLkVGvRq43HNwyBAgXTKcarl6Jsq8NzOBs70eZM4zL6fELOI");
   entrega.setUf(NFUnidadeFederativa.AC);
   entrega.toString();
 }
예제 #3
0
 @Test(expected = IllegalStateException.class)
 public void naoDevePermitirNomeMunicipioNulo() {
   final NFNotaInfoLocal entrega = new NFNotaInfoLocal();
   entrega.setBairro("JE17uXBNBnYTSTSQgqXcGLOR6f22SnahtFHr5MoHQZtZhTowVe3SVwl57kil");
   entrega.setCnpj("12345678901234");
   entrega.setCodigoMunicipio("9999999");
   entrega.setComplemento("ifyKIg3j3eZtlNVAj3XJYZiJCrul6VLL85E7x6Kx6DVeChwlRLEkCQn7k5pe");
   entrega.setLogradouro("t59le7pl2eVn390y026Ebgh3HXtvEBzsMp4BzZJEwIazezToxeeKJCvm1GoG");
   entrega.setNumero("YHTewrLNvzYaBmSbwxkDYcEZTCMORFVPAc6t6C5p0Bfu1globey70KWnaHHa");
   entrega.setUf(NFUnidadeFederativa.AC);
   entrega.toString();
 }
예제 #4
0
 @Test(expected = IllegalStateException.class)
 public void naoDevePermitirLogradouroNulo() {
   final NFNotaInfoLocal entrega = new NFNotaInfoLocal();
   entrega.setBairro("JE17uXBNBnYTSTSQgqXcGLOR6f22SnahtFHr5MoHQZtZhTowVe3SVwl57kil");
   entrega.setCnpj("12345678901234");
   entrega.setCodigoMunicipio("9999999");
   entrega.setComplemento("ifyKIg3j3eZtlNVAj3XJYZiJCrul6VLL85E7x6Kx6DVeChwlRLEkCQn7k5pe");
   entrega.setNomeMunicipio("OpXKhaHINo7OwLkVGvRq43HNwyBAgXTKcarl6Jsq8NzOBs70eZM4zL6fELOI");
   entrega.setNumero("YHTewrLNvzYaBmSbwxkDYcEZTCMORFVPAc6t6C5p0Bfu1globey70KWnaHHa");
   entrega.setUf(NFUnidadeFederativa.AC);
   entrega.toString();
 }
예제 #5
0
 @Test
 public void devePermitirComplementoNulo() {
   final NFNotaInfoLocal entrega = new NFNotaInfoLocal();
   entrega.setBairro("JE17uXBNBnYTSTSQgqXcGLOR6f22SnahtFHr5MoHQZtZhTowVe3SVwl57kil");
   entrega.setCnpj("12345678901234");
   entrega.setCodigoMunicipio("9999999");
   entrega.setLogradouro("t59le7pl2eVn390y026Ebgh3HXtvEBzsMp4BzZJEwIazezToxeeKJCvm1GoG");
   entrega.setNomeMunicipio("OpXKhaHINo7OwLkVGvRq43HNwyBAgXTKcarl6Jsq8NzOBs70eZM4zL6fELOI");
   entrega.setNumero("YHTewrLNvzYaBmSbwxkDYcEZTCMORFVPAc6t6C5p0Bfu1globey70KWnaHHa");
   entrega.setUf(NFUnidadeFederativa.AC);
   entrega.toString();
 }
예제 #6
0
 @Test(expected = IllegalStateException.class)
 public void naoDevePermitirCPFSetadoQuandoCNPJEstaSetado() {
   final NFNotaInfoLocal entrega = new NFNotaInfoLocal();
   entrega.setCnpj("12345678901234");
   entrega.setCpf("12345678901");
 }