Skip to content

Commit

Permalink
Test local creado
Browse files Browse the repository at this point in the history
  • Loading branch information
mrufpal committed Feb 2, 2017
1 parent eece3a1 commit bf527ff
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/test/java/test/java/VerificacionTestLocal.java
Original file line number Diff line number Diff line change
Expand Up @@ -429,4 +429,28 @@ public void test10EncryptRSAFalseLocal() throws Exception{
Assert.assertTrue(test.equals(a));
}

@Test
public void testDefensaLocal(){
System.out.println("----------------PRUEBA TEST Defensa -------------------------");
String votationId;
Integer token;
boolean res;

votationId = (new BigInteger(25, new SecureRandom())).toString();

token = calculateToken(new Integer(votationId));

res = auth.defensaLocal(votationId, token);

idUtilizados.add(votationId);

System.out.println("ID Votacion: " + votationId);
System.out.println("Token: " + token);
System.out.println("Verificar que el postKey se hace correctamente: " + res);
System.out.println("-----------------------------------------------------------------------\n\n");
Assert.assertTrue(res == true);

}


}

0 comments on commit bf527ff

Please sign in to comment.